CommandBarComboBoxClass.RemoveItem Method
Removes an item from a CommandBarComboBox control.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Syntax
'Declaration
Public Overridable Sub RemoveItem ( _
Index As Integer _
)
'Usage
Dim instance As CommandBarComboBoxClass
Dim Index As Integer
instance.RemoveItem(Index)
public virtual void RemoveItem(
int Index
)
Parameters
Index
Type: System.Int32The item to be removed from the list.
Implements
_CommandBarComboBox.RemoveItem(Int32)
Examples
This example determines whether there are more than three items in the specified combo box. If there are more than three items, the example removes the second item, alters the style, and sets a new value. It also sets the Tag property of the parent object (the CommandBarControl object) to show that the list has changed.