StyleGrid REALbasic Plugin

StyleGrid.Cell Method

This setter/getter function is used to access the data of a cell in read mode.

Cell(
   x as integer,
   y as integer) as StyleGridCell

Parameters

x
The column number of the cell.
y
The row number of the cell.

Returns

StyleGridCell
Returns a reference to the requested cell or to the Grid's default cell if the requested cell did not actually exist in memory.

Remarks

The property is read only, but data can be written to the returned class, though in most cases you would want to use the WritableCell function to write to cell rather than the Cell function.

Cell's number are one based, that is the first cell is Cell(1,1).

As StyleGrid uses Einhugur's Floating Engine as data container, then the Cell property does not guaranty to return a true cell. That is if the desired cell is a virtual cell, then the Cell property will return the DefaultCell value of the StyleGrid.

Virtual cells are cells which do not exist in memory and the gaps in-between are filled as DefaultCell.

In most cases, the Cell property should only be used to read data from a cell.
Use cell reference returned from the WritableCell function to write into a cell.

See Also

StyleGrid Control