Share via


_CommandBarComboBox.ListIndex Property

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

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Property ListIndex As Integer
    Get
    Set
'Usage
Dim instance As _CommandBarComboBox
Dim value As Integer

value = instance.ListIndex

instance.ListIndex = value
int ListIndex { get; set; }

Property Value

Type: System.Int32

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

See Also

Reference

_CommandBarComboBox Interface

_CommandBarComboBox Members

Microsoft.Office.Core Namespace