PreferredWidthType Enumeration |
Specifies the unit of measurement for the preferred width of a table or cell.
Namespace:
Aspose.Words.Tables
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntaxpublic enum PreferredWidthType
Public Enumeration PreferredWidthType
public enum class PreferredWidthType
Members
| Member name | Value | Description |
---|
| Auto | 1 |
The preferred width is not specified. The actual width of the table or cell is either specified using the explicit width or
will be determined automatically by the table layout algorithm when the table is displayed, depending on the table auto fit setting.
|
| Percent | 2 |
Measure the current item width using a specified percentage.
|
| Points | 3 |
Measure the current item width using a specified number of points (1/72 inch).
|
Remarks
ExamplesRetrieves the preferred width type of a table cell.
Cell firstCell = table.FirstRow.FirstCell;
PreferredWidthType type = firstCell.CellFormat.PreferredWidth.Type;
double value = firstCell.CellFormat.PreferredWidth.Value;
See Also