Hide

SftBox/OCX 5.0 - Combo Box Control

Display
Print

SftBoxItems.Remove Method

Deletes an item.

Syntax

VB.NETRemaining = object.Remove(ByVal ItemIndex As Integer) As Integer
VBRemaining = object.Remove(ByVal ItemIndex As Long) As Long
C#.NETint Remaining = object.Remove(int ItemIndex);
VC++long Remaining = object->Remove(long ItemIndex);
CHRESULT object->raw_Remove(long ItemIndex, long* Remaining);

object

A SftBoxItems object.

ItemIndex

The zero-based index of the item to be removed.

Remaining

Returns the number of items remaining in the combo box.

Comments

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


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.