SftTree/OCX 7.0

SftTree.ItemDataObject Property

Softel vdm, Inc.

Defines an item's application specific object.

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

Syntax       

Get

VB.NET

refObject = object.get_ItemDataObject(ByVal ItemIndex As Integer)  As Object

VB

refObject = object.ItemDataObject(ByVal ItemIndex As Long)  As Object

C#.NET

object refObject = object.get_ItemDataObject(int ItemIndex);

VC++

LPDISPATCH refObject = object->ItemDataObject[long ItemIndex];
LPDISPATCH refObject = object->GetItemDataObject(long ItemIndex);

C

HRESULT object->get_ItemDataObject(long ItemIndex, LPDISPATCH* refObject);

Delphi

refObject := object.ItemDataObject[ItemIndex : Integer]   : IDispatch;

PutRef

VB.NET

object.set_ItemDataObject(ByVal ItemIndex As Integer, ByVal refObject As Object)

VB

Set object.ItemDataObject(ByVal ItemIndex As Long) = refObject  As Object

C#.NET

void object.set_ItemDataObject(int ItemIndex, object refObject);

VC++

LPDISPATCH object->ItemDataObject[long ItemIndex] = refObject;
void object->PutRefItemDataObject(long ItemIndex, LPDISPATCH refObject);

C

HRESULT object->putref_ItemDataObject(long ItemIndex, LPDISPATCH refObject);

Delphi

object.ItemDataObject[ItemIndex : Integer] := refObject   : IDispatch;

object

A SftTree object.

ItemIndex

The zero-based item index.

refObject

Defines an item's application specific object.

Comments

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

The ItemDataObject property defines an item's application specific object.

Additional properties used to associate an application defined value with an item are Item.Data, Item.DataFloat, 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