Skip to main content

TableRow Class

Defines a table row in the document.

Declaration

export class TableRow extends TableElementBase

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

cells Property

Provides information about the table row’s cells.

Declaration

get cells(): TableCellCollection

Property Value

Type Description
TableCellCollection

An array of TableCell objects that store information about individual table cells.

height Property

Specifies the row’s height settings.

Declaration

get height(): TableRowHeight
set height(value: TableRowHeight)

Property Value

Type Description
TableRowHeight

An object that contains row height settings.

Remarks

Use the height property to specify the row height.

index Property

Gets an index of the row in a table.

Declaration

get index(): number

Property Value

Type Description
number

The row index.

Remarks

Use the index to access the corresponding row by the TableRowCollection.getByIndex method.

interval Property

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

Declaration

get interval(): Interval

Property Value

Type Description
Interval

An object that contains the interval settings.

parentTable Property

Returns the table that contains the current row.

Declaration

get parentTable(): Table

Property Value

Type Description
Table

The table that contains the current row.