HeaderPane
Main
Hide
Share Link
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

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

Put

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

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 11/03/2026 - (email)
© 2026 Softel vdm, Inc.