java.lang.Object
com.aspose.words.PreferredWidthType
public class PreferredWidthType
- extends java.lang.Object
Utility class containing constants.
Specifies the unit of measurement for the preferred width of a table or cell.
Example:
Retrieves the preferred width type of a table cell.
Cell firstCell = table.getFirstRow().getFirstCell();
int type = firstCell.getCellFormat().getPreferredWidth().getType();
double value = firstCell.getCellFormat().getPreferredWidth().getValue();
- See Also:
- PreferredWidth
Field Summary |
static final int | 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.
|
static final int | PERCENT = 2 | |
Measure the current item width using a specified percentage.
|
static final int | POINTS = 3 | |
Measure the current item width using a specified number of points (1/72 inch).
|
AUTO = 1 | |
public static final int AUTO |
-
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 | |
public static final int PERCENT |
-
Measure the current item width using a specified percentage.
POINTS = 3 | |
public static final int POINTS |
-
Measure the current item width using a specified number of points (1/72 inch).
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.