value property
PreferredWidth.value property
Gets the preferred width value. The unit of measure is specified in the PreferredWidth.type property.
get value(): number
Examples
Shows how to verify the preferred width type and value of a table cell.
let doc = new aw.Document(base.myDir + "Tables.docx");
let table = doc.firstSection.body.tables.at(0);
let firstCell = table.firstRow.firstCell;
expect(firstCell.cellFormat.preferredWidth.type).toEqual(aw.Tables.PreferredWidthType.Percent);
expect(firstCell.cellFormat.preferredWidth.value).toEqual(11.16);
See Also
- module Aspose.Words.Tables
- class PreferredWidth