|
|
|
SftTreeItem.ID Property |
Defines the item ID of the item.
Syntax
VB.NET |
ItemID = object.ID As Integer |
||
VB |
ItemID = object.ID As Long |
||
C#.NET |
int ItemID = object.ID; |
||
VC++ |
long ItemID = object->ID;
|
||
C |
HRESULT object->get_ID(long* ItemID); |
||
Delphi |
ItemID := object.ID : Integer; |
||
VB.NET |
object.ID = ItemID As Integer |
||
VB |
object.ID = ItemID As Long |
||
C#.NET |
int object.ID = ItemID; |
||
VC++ |
long object->ID = ItemID;
|
||
C |
HRESULT object->put_ID(long ItemID); |
||
Delphi |
object.ID := ItemID : Integer; |
object
A SftTreeItem object.
ItemID
Defines the item ID of the item.
Comments
The ID property defines the item ID of the item.
The tree 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 tree control.
An item ID can be translated into an item index using the Items.ItemIndex property.
See Also SftTreeItem Object | Object Hierarchy