SftTree/OCX 7.0

SftTreeCell.DataObject Property

Softel vdm, Inc.

Defines the cell's application specific object value.

Syntax       

Get

VB.NET

refObjectPtr = object.DataObject  As Object

VB

refObjectPtr = object.DataObject  As Object

C#.NET

object refObjectPtr = object.DataObject;

VC++

LPDISPATCH refObjectPtr = object->DataObject;
LPDISPATCH refObjectPtr = object->GetDataObject();

C

HRESULT object->get_DataObject(LPDISPATCH* refObjectPtr);

Delphi

refObjectPtr := object.DataObject   : IDispatch;

PutRef

VB.NET

object.DataObject = refObjectPtr  As Object

VB

Set object.DataObject = refObjectPtr  As Object

C#.NET

object object.DataObject = refObjectPtr;

VC++

LPDISPATCH object->DataObject = refObjectPtr;
void object->PutRefDataObject(LPDISPATCH refObjectPtr);

C

HRESULT object->putref_DataObject(LPDISPATCH refObjectPtr);

Delphi

object.DataObject := refObjectPtr   : IDispatch;

object

A SftTreeCell object.

refObjectPtr

Defines the cell's application specific object value.

Comments

The DataObject property defines the cell's application specific object value.

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

When using .NET languages, the Cell.DataTag property should be used instead. DataObject is intended to be used with COM objects only.

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  SftTreeCell Object | Object Hierarchy


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