SftTree/OCX 7.0

SftTree.CellItemData Property

Softel vdm, Inc.

Defines a cell's application specific value.

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

Syntax       

Get

VB.NET

Data = object.get_CellItemData(ByVal ItemIndex As Integer, ByVal ColIndex As Short)  As Integer

VB

Data = object.CellItemData(ByVal ItemIndex As Long, ByVal ColIndex As Integer)  As Long

C#.NET

int Data = object.get_CellItemData(int ItemIndex, short ColIndex);

VC++

long Data = object->CellItemData[long ItemIndex][short ColIndex];
long Data = object->GetCellItemData(long ItemIndex, short ColIndex);

C

HRESULT object->get_CellItemData(long ItemIndex, short ColIndex, long* Data);

Delphi

Data := object.CellItemData[ItemIndex : Integer; ColIndex : Smallint]   : Integer;

Put

VB.NET

object.set_CellItemData(ByVal ItemIndex As Integer, ByVal ColIndex As Short, ByVal Data As Integer)

VB

object.CellItemData(ByVal ItemIndex As Long, ByVal ColIndex As Integer) = Data  As Long

C#.NET

void object.set_CellItemData(int ItemIndex, short ColIndex, int Data);

VC++

long object->CellItemData[long ItemIndex][short ColIndex] = Data;
void object->PutCellItemData(long ItemIndex, short ColIndex, long Data);

C

HRESULT object->put_CellItemData(long ItemIndex, short ColIndex, long Data);

Delphi

object.CellItemData[ItemIndex : Integer; ColIndex : Smallint] := Data   : Integer;

object

A SftTree object.

ItemIndex

The zero-based item index.  The combination of ItemIndex and ColIndex describes an individual cell.

ColIndex

The zero-based column number.  The combination of ItemIndex and ColIndex describes an individual cell.

Data

Defines the cell's application specific value.

Comments

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

The CellItemData property defines a cell's application specific value.

The CellItemData property can be used to store application specific data with a cell.  Possible uses include storing pointers to data structures or values used for sorting purposes (see Items.SortDependents method).

The Cell.DataString, Cell.DataObject, Cell.DataTag properties can be used to store additional application specific data, using other data types (strings, objects, variants).

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

See Also  SftTree Object | Object Hierarchy


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