Hide

SftBox/OCX 5.0 - Combo Box Control

Display
Print

SftBoxItem.ID Property

Defines the item ID of the item.

Syntax

Get

VB.NETItemID = object.ID As Integer
VBItemID = object.ID As Long
C#.NETint ItemID = object.ID;
VC++long ItemID = object->ID;
long ItemID = object->GetID();
CHRESULT object->get_ID(long* ItemID);

Put

VB.NETobject.ID = ItemID As Integer
VBobject.ID = ItemID As Long
C#.NETint object.ID = ItemID;
VC++long object->ID = ItemID;
void object->PutID(long ItemID);
CHRESULT object->put_ID(long ItemID);

object

A SftBoxItem object.

ItemID

Defines the item ID of the item.

Comments

The ID property defines the item ID of the item.

The combo box control automatically assigns a unique item ID to items as they are added to the control. The item ID defined by the ID property does not change throughout the lifetime of an item. Even if an item changes its index position because other items are deleted or inserted, the item ID remains constant.

An application can change an item's item ID using the ID property. In this case, if a unique item ID is required, the application must insure using its own mechanisms that unique IDs are used.

The item index describes the zero-based position of an item in a combo box control.

An item ID can be translated into an item index using the Items.ItemIndex property.

See Also SftBoxItem Object | Object Hierarchy


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