SftTree/OCX 7.0

SftTree.ItemData Property

Softel vdm, Inc.

Defines an item's application specific value.

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

Syntax       

Get

VB.NET

Data = object.get_ItemData(ByVal ItemIndex As Integer)  As Integer

VB

Data = object.ItemData(ByVal ItemIndex As Long)  As Long

C#.NET

int Data = object.get_ItemData(int ItemIndex);

VC++

long Data = object->ItemData[long ItemIndex];
long Data = object->GetItemData(long ItemIndex);

C

HRESULT object->get_ItemData(long ItemIndex, long* Data);

Delphi

Data := object.ItemData[ItemIndex : Integer]   : Integer;

Put

VB.NET

object.set_ItemData(ByVal ItemIndex As Integer, ByVal Data As Integer)

VB

object.ItemData(ByVal ItemIndex As Long) = Data  As Long

C#.NET

void object.set_ItemData(int ItemIndex, int Data);

VC++

long object->ItemData[long ItemIndex] = Data;
void object->PutItemData(long ItemIndex, long Data);

C

HRESULT object->put_ItemData(long ItemIndex, long Data);

Delphi

object.ItemData[ItemIndex : Integer] := Data   : Integer;

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


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