Skip to main content
A newer version of this page is available. .

TableCell Class

Defines a table cell in the document.

Declaration

export class TableCell

Remarks

var table = richEdit.document.tables.getByIndex(0);
var cell = table.rows.getByIndex(0).cells.getByIndex(0);
var text = richEdit.document.subDocuments.main.getText(cell.interval)

Properties

index Property

Gets an index of the cell in a table row.

Declaration

readonly index: number

Property Value

Type Description
number

The cell index.

Remarks

Use the index to access the corresponding cell by the TableCellCollection.getByIndex method.

var table = richEdit.document.tables.getByIndex(0);
var cell = table.rows.getByIndex(0).cells.getByIndex(0);
var text = richEdit.document.subDocuments.main.getText(cell.interval)

interval Property

Gets the text buffer interval occupied by the current table cell element.

Declaration

readonly interval: Interval

Property Value

Type Description
Interval

An object that contains the interval settings.

Remarks

var table = richEdit.document.tables.getByIndex(0);
var cell = table.rows.getByIndex(0).cells.getByIndex(0);
var text = richEdit.document.subDocuments.main.getText(cell.interval)