Defines a cell's application specific value.
Deprecated - Provided for compatibility with earlier versions only - Cell.Data instead
Get
| C# | int Data = object.get_CellItemData(int ItemIndex, short ColIndex); |
| VB.NET | Data = object.get_CellItemData(ByVal ItemIndex As Integer, ByVal ColIndex As Short) As Integer |
| C++ | 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); |
| VB | Data = object.CellItemData(ByVal ItemIndex As Long, ByVal ColIndex As Integer) As Long |
Put
| C# | void object.set_CellItemData(int ItemIndex, short ColIndex, int Data); |
| VB.NET | object.set_CellItemData(ByVal ItemIndex As Integer, ByVal ColIndex As Short, ByVal Data As Integer) |
| C++ | 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); |
| VB | object.CellItemData(ByVal ItemIndex As Long, ByVal ColIndex As Integer) = Data As Long |
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.
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