CommandBarComboBoxClass.List Property
Gets or sets an item in the CommandBarComboBox control. Read/write.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Syntax
'Declaration
Public Overridable Property List ( _
Index As Integer _
) As String
Get
Set
'Usage
Dim instance As CommandBarComboBoxClass
Dim Index As Integer
Dim value As String
value = instance.List(Index)
instance.List(Index) = value
public virtual string this[
int Index
] { get; set; }
Parameters
Index
Type: System.Int32The list item to be set.
Property Value
Type: System.String
Implements
_CommandBarComboBox.List[Int32]
Remarks
Note
This property is read-only for built-in combo box controls.
Examples
This example checks the fourth list item in the combo box control whose caption is "Stock Data" on the command bar named "Custom." If the item isn’t "View News," the example displays a message advising the user that the combo box may be damaged and asks the user to reinstall the application.