public Object SelectedItem { get; set; }
Public Property SelectedItem As Object
Get
Set
public:
property Object^ SelectedItem {
Object^ get ();
void set (Object^ value);
}
member SelectedItem : Object with get, set
If there is no current selection, this property returns null.
When you set this property to an object, the list control attempts to make that object the currently selected one in the list. If the object is found in the list, it is displayed as the selected item and the SelectedIndex property is set to the corresponding index. If the object does not exist in the list the SelectedIndex property is left at its current value.