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.SelectedIndex

The index of the currently selected item in the list, if there is one. If the value is-1, there is currently no selection. If the value is 0 or greater, than the value is the index of the currently selected item. If the MultiSelect property on the ListBox is true, then a non-zero value for this property is the index of the first selection

[Visual Basic]
Overridable Public Property SelectedIndex As Integer
[C#]
public int SelectedIndex {override get; override set;}
[C++]
public: __property virtual int get_SelectedIndex();
public: __property virtual void set_SelectedIndex(int);
[JScript]
public function get SelectedIndex() : int;
public function set SelectedIndex(int);

See Also

ListBox Class | ListBox Members | System.WinForms Namespace