次の方法で共有


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

'宣言
Public Overridable Property ListIndex As Integer
public virtual int ListIndex { get; set; }

Property Value

Type: System.Int32
The (1-based) index of the selected item in the list.

Implements

_CommandBarComboBox.ListIndex

Remarks

The set accessor is deprecated, and throws a DeprecatedException.

.NET Framework Security

See Also

Reference

CommandBarComboBoxClass Class

Microsoft.VisualStudio.CommandBars Namespace