Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

ItemData Property, SftTree Object

Defines an item's application specific value.

Deprecated - Provided for compatibility with earlier versions only - Use Item.Data instead

Syntax

Get

VB.NETData = object.get_ItemData(ByVal ItemIndex As Integer) As Integer
VBData = object.ItemData(ByVal ItemIndex As Long) As Long
C#.NETint Data = object.get_ItemData(int ItemIndex);
VC++long Data = object->ItemData[long ItemIndex];
long Data = object->GetItemData(long ItemIndex);
CHRESULT object->get_ItemData(long ItemIndex, long* Data);

Put

VB.NETobject.set_ItemData(ByVal ItemIndex As Integer, ByVal Data As Integer)
VBobject.ItemData(ByVal ItemIndex As Long) = Data As Long
C#.NETvoid object.set_ItemData(int ItemIndex, int Data);
VC++long object->ItemData[long ItemIndex] = Data;
void object->PutItemData(long ItemIndex, long Data);
CHRESULT object->put_ItemData(long ItemIndex, long Data);

object

A SftTree object.

ItemIndex

The zero-based item index.

Data

Defines an item's application specific value.

Comments

Deprecated - Provided for compatibility with earlier versions only - Use Item.Data instead

The ItemData property defines an item's application specific value.

The ItemData property can be used to store an application specific value with an item. Possible uses include storing values used for sorting purposes (see Items.SortDependents method).

Additional properties used to associate an application defined value with an item are Item.DataFloat, Item.DataObject, Item.DataString and Item.DataTag. These are distinct properties and can be used at the same time.

Cell related data can be saved using the Cell.Data, Cell.DataObject, Cell.DataString and Cell.DataTag properties.

See Also SftTree Object | Object Hierarchy


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