StyleGrid REALbasic Plugin |

# StyleGrid.CellText Method

To set or get the text of a cell.

CellText(
x as integer,
y as integer) as String
CellText(
x as integer,
y as integer
assigns value as String)

#### Parameters

x
  The column number of the cell.
y
  The row number of the cell.
value (assignment parameter)
  When using the setter then this is the text to put in the cell.

#### Returns

String
  When using the getter then the Cell text is returned.

#### Remarks

Cell's number are one based, that is the first cell is Cell(1,1).
The CellText property uses the Cell property internally to read from a cell and also the WritableCell property to write into a cell.
Supported Encodings:

- MacOS Classic: System Default.
- MacOS X: All encodings that REALbasic supports.
- Windows (*NT Based): System Default, UTF-8, UTF-16.
- Windows (Non NT Based): System Default.
- Linux: UTF-8
  *NT Based Windows Systems are:
  Windows NT, Windows 2000, Windows 2000 Server, Windows XP, Windows 2003 Server.

  #### See Also

  StyleGrid Control