Compartilhar via


_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

'Declaration
Property ListIndex As Integer
int ListIndex { get; set; }
property int ListIndex {
    int get ();
    void set (int value);
}
abstract ListIndex : int with get, set
function get ListIndex () : int 
function set ListIndex (value : int)

Property Value

Type: 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

See Also

Reference

_CommandBarComboBox Interface

Microsoft.VisualStudio.CommandBars Namespace