aspnetcore-js-devexpress-dot-richedit-28fd8827.md
A collection of the Table objects.
export class TableCollection extends TableBaseCollection<Table>
Creates a new Table object with the specified settings and adds it to the collection.
create(
position: number,
columnCount: number,
rowCount: number
): Table
| Name | Type | Description |
|---|---|---|
| position | number |
The table position.
| | columnCount | number |
The number of columns in the table.
| | rowCount | number |
The number of rows in the table.
|
| Type | Description |
|---|---|
| Table |
The newly created table.
|
var columnCount = 5;
var rowCount = 5;
var subDocument = richEdit.selection.activeSubDocument;
var position = richEdit.selection.active;
var table = subDocument.tables.create(position, columnCount, rowCount);
Returns a list of tables that traverse the specified position or interval.
find(
position: number | IInterval
): Table[]
| Name | Type | Description |
|---|---|---|
| position | number | IInterval |
A document position or interval.
|
| Type | Description |
|---|---|
| Table[] |
A list of tables.
|
var subDocument = richEdit.selection.activeSubDocument;
var position = richEdit.selection.active;
var tables = subDocument.tables.find(position);
for(var i = tables.length - 1, table; table = tables[i]; i--)
table.delete();