asposewordscloud
Version:
Aspose.Words Cloud SDK for Node.js
103 lines (102 loc) • 4.47 kB
TypeScript
import { AttributeInfo } from '../internal/attributeInfo';
import { LinkElement } from './linkElement';
import { PreferredWidth } from './preferredWidth';
export declare const importsMapTableCellFormat: {
LinkElement: typeof LinkElement;
PreferredWidth: typeof PreferredWidth;
};
/**
* DTO container with all formatting for a table row.
*/
export declare class TableCellFormat extends LinkElement {
/**
* Attribute type map
*/
static attributeTypeMap: Array<AttributeInfo>;
/**
* Returns attribute type map
*/
static getAttributeTypeMap(): AttributeInfo[];
/**
* Gets or sets the amount of space (in points) to add below the contents of the cell.
*/
bottomPadding: number;
/**
* Gets or sets a value indicating whether to fit text in the cell, compress each paragraph to the width of the cell.
*/
fitText: boolean;
/**
* Gets or sets the option that controls how the cell is merged horizontally with other cells in the row.
*/
horizontalMerge: TableCellFormat.HorizontalMergeEnum;
/**
* Gets or sets the amount of space (in points) to add to the left of the contents of the cell.
*/
leftPadding: number;
/**
* Gets or sets the orientation of text in a table cell.
*/
orientation: TableCellFormat.OrientationEnum;
/**
* Gets or sets the preferred width of the cell.
* The preferred width (along with the table's Auto Fit option) determines how the actual width of the cell is calculated by the table layout algorithm. Table layout can be performed by Aspose.Words when it saves the document or by Microsoft Word when it displays the document.The preferred width can be specified in points or in percent. The preferred width can also be specified as "auto", which means no preferred width is specified.The default value is Auto.
*/
preferredWidth: PreferredWidth;
/**
* Gets or sets the amount of space (in points) to add to the right of the contents of the cell.
*/
rightPadding: number;
/**
* Gets or sets the amount of space (in points) to add above the contents of the cell.
*/
topPadding: number;
/**
* Gets or sets the vertical alignment of text in the cell.
*/
verticalAlignment: TableCellFormat.VerticalAlignmentEnum;
/**
* Gets or sets the option that controls how the cell is merged with other cells vertically.
* Cells can only be merged vertically if their left and right boundaries are identical.When cells are vertically merged, the display areas of the merged cells are consolidated. The consolidated area is used to display the contents of the first vertically merged cell and all other vertically merged cells must be empty.
*/
verticalMerge: TableCellFormat.VerticalMergeEnum;
/**
* Gets or sets the width of the cell in points.
* The width is calculated by Aspose.Words on document loading and saving. Currently, not every combination of table, cell and document properties is supported. The returned value may not be accurate for some documents. It may not exactly match the cell width as calculated by MS Word when the document is opened in MS Word.Setting this property is not recommended. There is no guarantee that the cell will actually have the set width. The width may be adjusted to accommodate cell contents in an auto-fit table layout. Cells in other rows may have conflicting width settings. The table may be resized to fit into the container or to meet table width settings. Consider using PreferredWidth for setting the cell width. Setting this property sets PreferredWidth implicitly since version 15.8.
*/
width: number;
/**
* Gets or sets a value indicating whether to wrap text in the cell.
*/
wrapText: boolean;
constructor(init?: Partial<TableCellFormat>);
collectFilesContent(_resultFilesContent: Array<any>): void;
validate(): void;
}
/**
* Enums for TableCellFormat
*/
export declare namespace TableCellFormat {
enum HorizontalMergeEnum {
None,
First,
Previous
}
enum OrientationEnum {
Horizontal,
Downward,
Upward,
HorizontalRotatedFarEast,
VerticalFarEast,
VerticalRotatedFarEast
}
enum VerticalAlignmentEnum {
Top,
Center,
Bottom
}
enum VerticalMergeEnum {
None,
First,
Previous
}
}