StyleGrid REALbasic Plugin |

# StyleGrid.WritableCell Method

This setter/getter function is used to access data of a cell.

WritableCell(
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. If the cell did not actually exist in memory then it gets created.

#### Remarks

The property is read only, but data can be written to the returned class.
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