Base List ControlSelected Item Property
Gets or sets the currently selected item in the list control
Definition
Namespace: EWSoftware.ListControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
C#
public Object? SelectedItem { get; set; }VB
Public Property SelectedItem As Object
Get
SetC++
public:
property Object^ SelectedItem {
Object^ get ();
void set (Object^ value);
}F#
member SelectedItem : Object with get, setProperty Value
ObjectIf 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.