Partilhar via


CommandBarComboBoxClass.ListIndex Property

Definition

Gets or sets the (1-based) index of the selected item in the list.

public:
 virtual property int ListIndex { int get(); void set(int value); };
public:
 virtual property int ListIndex { int get(); void set(int value); };
[System.Runtime.InteropServices.DispId(1610940427)]
public virtual int ListIndex { [System.Runtime.InteropServices.DispId(1610940427)] get; [System.Runtime.InteropServices.DispId(1610940427)] set; }
[<System.Runtime.InteropServices.DispId(1610940427)>]
[<get: System.Runtime.InteropServices.DispId(1610940427)>]
[<set: System.Runtime.InteropServices.DispId(1610940427)>]
member this.ListIndex : int with get, set
Public Overridable Property ListIndex As Integer

Property Value

The (1-based) index of the selected item in the list.

Implements

Attributes

Remarks

The set accessor is deprecated, and throws a DeprecatedException.

Applies to