編輯

共用方式為


_CommandBarComboBox.ListIndex Property

Definition

Returns or sets the index number of the selected item in the list portion of the command bar combo box control.

public:
 property int ListIndex { int get(); void set(int value); };
public int ListIndex { get; set; }
member this.ListIndex : int with get, set
Public Property ListIndex As Integer

Property Value

Remarks

Setting the ListIndex property causes the specified control to select the given item and execute the appropriate action in the application.

If nothing is selected in the list, this property returns zero. This property fails when applied to controls other than list controls.

Notes to callers

Applies to