_CommandBarComboBox.ListIndex Property
Gets or sets the (1-based) index of the selected item in the list.
Namespace: Microsoft.VisualStudio.CommandBars
Assembly: Microsoft.VisualStudio.CommandBars (in Microsoft.VisualStudio.CommandBars.dll)
Syntax
'宣言
Property ListIndex As Integer
int ListIndex { get; set; }
Property Value
Type: System.Int32
The (1-based) index of the selected item in the list.
Remarks
The set accessor is deprecated, and throws a DeprecatedException.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.