Defines an application defined value associated with an item.
Deprecated - Provided for compatibility with earlier versions only - Use Item.DataTag instead
Get
| C# | object Data = object.get_ItemDataTag(int ItemIndex); |
| VB.NET | Data = object.get_ItemDataTag(ByVal ItemIndex As Integer) As Object |
| C++ | _variant_t Data = object->ItemDataTag[long ItemIndex]; _variant_t Data = object->GetItemDataTag(long ItemIndex); |
| C | HRESULT object->get_ItemDataTag(long ItemIndex, VARIANT* Data); |
| VB | Data = object.ItemDataTag(ByVal ItemIndex As Long) As Variant |
Put
| C# | void object.set_ItemDataTag(int ItemIndex, object Data); |
| VB.NET | object.set_ItemDataTag(ByVal ItemIndex As Integer, ByVal Data As Object) |
| C++ | _variant_t object->ItemDataTag[long ItemIndex] = Data; void object->PutItemDataTag(long ItemIndex, const _variant_t& Data); |
| C | HRESULT object->put_ItemDataTag(long ItemIndex, VARIANT Data); |
| VB | object.ItemDataTag(ByVal ItemIndex As Long) = Data As Variant |
object
ItemIndex
The zero-based item index.
Data
Defines an application defined value associated with an item.
Deprecated - Provided for compatibility with earlier versions only - Use Item.DataTag instead
The ItemDataTag property defines an application defined value associated with an item.
Additional properties used to associate an application defined value with an item are Item.Data, Item.DataFloat, Item.DataObject and Item.DataString. 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