SELECTEDINDEX Attribute | SelectedIndex Property
Sets or retrieves a value that indicates the index of the selected object.
Syntax
Visual Basic Public Property SelectedIndex As int C# public int SelectedIndex { get; set; } Managed C++ public: __property int get_SelectedIndex();
public: __property void set_SelectedIndex(int);JScript public function get SelectedIndex() : int;
public function set SelectedIndex(int);
Possible Values
iIndex int that specifies or receives the index of the selected object. The property is read/write. The property has a default value of -1.
Remarks
If the MultiPage contains a PageView, the default value of the SelectedIndex property is
0
, unless otherwise specified by the user.This property throws an exception if the value that is set is invalid.
Applies To
MULTIPAGE, TABSTRIP
See Also
Internet Explorer WebControls, About the MultiPage WebControl, About the TabStrip WebControl