UNPKG

devexpress-richedit

Version:

DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.

26 lines (25 loc) 813 B
import { TableRow } from '../../../../../model/tables/main-structures/table-row'; import { ListUtils } from '@devexpress/utils/lib/utils/list'; import { RtfTableRowProperties } from './properties/table-row-properties'; export class RtfTableRow { cells; offset = 0; index = -1; defineProperties; properties; table; constructor(table) { this.properties = new RtfTableRowProperties(); this.table = table; this.cells = []; } get right() { const lastCell = ListUtils.last(this.cells); return lastCell ? lastCell.properties.right : 0; } createTableRow(parentTable) { const row = new TableRow(parentTable, this.properties.coreProperties); this.properties.apply(row); return row; } }