SftBox/OCX 4.5

SftBoxItems.Remove Method

Softel vdm, Inc.

Deletes an item.

Syntax       

VB.NET

Remaining = object.Remove(ByVal ItemIndex As Integer)  As Integer

VB

Remaining = object.Remove(ByVal ItemIndex As Long)  As Long

C#.NET

int Remaining = object.Remove(int ItemIndex);

VC++

long Remaining = object->Remove(long ItemIndex);

C

HRESULT object->raw_Remove(long ItemIndex, long* Remaining);

Delphi

Remaining := object.Remove(ItemIndex : Integer)   : Integer;

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.

SftBoxItems.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.


Feedback / comments / error reports for this topic
© 2008 - Softel vdm, Inc. - www.softelvdm.com