NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ListBox.SelectedItem

The value of the currently selected item in the list, if there is one. If the value is null, there is currently no selection. If the value is non-null, then the value is that of the currently selected item. If the MultiSelect property on the ListBox is true, then a non-null return value for this method is the value of the first item selected

[Visual Basic]
Public Property SelectedItem As Object
[C#]
public object SelectedItem {get; set;}
[C++]
public: __property Object* get_SelectedItem();
public: __property void set_SelectedItem(Object*);
[JScript]
public function get SelectedItem() : Object;
public function set SelectedItem(Object);

See Also

ListBox Class | ListBox Members | System.WinForms Namespace