docx
Version:
Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.
17 lines (16 loc) • 737 B
TypeScript
import { XmlComponent } from "../../../file/xml-components";
import { TableCell } from "../table-cell";
import { ITableRowPropertiesOptions } from "./table-row-properties";
export interface ITableRowOptions extends ITableRowPropertiesOptions {
readonly children: TableCell[];
}
export declare class TableRow extends XmlComponent {
private readonly options;
constructor(options: ITableRowOptions);
get CellCount(): number;
get cells(): TableCell[];
addCellToIndex(cell: TableCell, index: number): void;
addCellToColumnIndex(cell: TableCell, columnIndex: number): void;
rootIndexToColumnIndex(rootIndex: number): number;
columnIndexToRootIndex(columnIndex: number, allowEndNewCell?: boolean): number;
}