InputPanel for WinForms帮助文档
SelectedIndex 属性 (InputComboBox)






Gets or sets index of the selected item in the InputComboBox.
语法
'声明
 
<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
<System.ComponentModel.BrowsableAttribute(False)>
<System.ComponentModel.BindableAttribute(Bindable=True, Direction=BindingDirection.OneWay)>
Public Property SelectedIndex As System.Integer
'用法
 
Dim instance As InputComboBox
Dim value As System.Integer
 
instance.SelectedIndex = value
 
value = instance.SelectedIndex
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
[System.ComponentModel.Bindable(Bindable=true, Direction=BindingDirection.OneWay)]
public System.int SelectedIndex {get; set;}
public read-write property SelectedIndex: System.Integer; 
System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)
System.ComponentModel.BrowsableAttribute()
System.ComponentModel.BindableAttribute(Bindable=, Direction=BindingDirection.OneWay)
public function get,set SelectedIndex : System.int
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
[System.ComponentModel.Bindable(Bindable=true, Direction=BindingDirection.OneWay)]
public: __property System.int get_SelectedIndex();
public: __property void set_SelectedIndex( 
   System.int value
);
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
[System.ComponentModel.Bindable(Bindable=true, Direction=BindingDirection.OneWay)]
public:
property System.int SelectedIndex {
   System.int get();
   void set (    System.int value);
}
需求

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

请参见

引用

InputComboBox 类
InputComboBox 成员

Send Feedback