Deletes an item.
| C# | int Remaining = object.Remove(int ItemIndex); |
| VB.NET | Remaining = object.Remove(ByVal ItemIndex As Integer) As Integer |
| C++ | long Remaining = object->Remove(long ItemIndex); |
| C | HRESULT object->raw_Remove(long ItemIndex, long* Remaining); |
| VB | Remaining = object.Remove(ByVal ItemIndex As Long) As Long |
object
ItemIndex
The zero-based index of the item to be removed.
Remaining
Returns the number of items remaining in the combo box.
The Remove method deletes an item.
Remove does not delete dependents of an item, use Item.DeleteDependents to delete dependent items first.
Items.Clear removes all items from a combo box.
If many items have to be deleted, the BulkUpdate property can be used to indicate a mass-update, which is significantly faster.
The drop down portion is automatically hidden when the combo box contents are changed using this method. The DropDown.SuppressOn method can be used to suppress hiding the drop down portion when adding/inserting items.
See Also SftBoxItems Object | Object Hierarchy