Defines an item's application specific value.
Deprecated - Provided for compatibility with earlier versions only - Use Item.Data instead
Get
| C# | int Data = object.get_ItemData(int ItemIndex); |
| VB.NET | Data = object.get_ItemData(ByVal ItemIndex As Integer) As Integer |
| C++ | long Data = object->ItemData[long ItemIndex]; long Data = object->GetItemData(long ItemIndex); |
| C | HRESULT object->get_ItemData(long ItemIndex, long* Data); |
| VB | Data = object.ItemData(ByVal ItemIndex As Long) As Long |
Put
| C# | void object.set_ItemData(int ItemIndex, int Data); |
| VB.NET | object.set_ItemData(ByVal ItemIndex As Integer, ByVal Data As Integer) |
| C++ | long object->ItemData[long ItemIndex] = Data; void object->PutItemData(long ItemIndex, long Data); |
| C | HRESULT object->put_ItemData(long ItemIndex, long Data); |
| VB | object.ItemData(ByVal ItemIndex As Long) = Data As Long |
object
ItemIndex
The zero-based item index.
Data
Defines an item's application specific value.
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