CommandBarComboBoxClass.RemoveItem(Int32) Method

Definition

Removes an item from a CommandBarComboBox control.

public:
 virtual void RemoveItem(int Index) = Microsoft::Office::Core::_CommandBarComboBox::RemoveItem;
public virtual void RemoveItem (int Index);
abstract member RemoveItem : int -> unit
override this.RemoveItem : int -> unit
Public Overridable Sub RemoveItem (Index As Integer)

Parameters

Index
Int32

The item to be removed from the list.

Implements

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.

Applies to