AutoFitBehavior

AutoFitBehavior

Overview

AutoFitBehavior is an enum in Aspose.Words FOSS for Java.

Determines how Aspose.Words resizes the table when you invoke the Table.autoFit() method.

Edition status of its 8 listed members (a property and its accessor methods are listed separately, overloads once): 8 not yet exercised by a verified example.

This enum declares 4 methods for AutoFitBehavior objects in Java programs. Available methods include: fromName, getName, getValues, toString. Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package. Properties: values.

Values

ValueDescription
AUTO_FIT_TO_CONTENTSAspose.Words enables the AutoFit option, removes the preferred width from the table and all cells and then updates the table layout.
AUTO_FIT_TO_WINDOWWhen you use this value, Aspose.Words enables the AutoFit option, sets the preferred width for the table to 100%, removes preferred widths from all cells and then updates the table layout.
FIXED_COLUMN_WIDTHSAspose.Words disables the AutoFit option and removes the preferred with from the table.

Properties

NameTypeAccessDescription
valuesint[]ReadReturns array of AutoFitBehavior values.

Methods

SignatureDescription
getName(autoFitBehavior: int) → StringReturns JAVA_STYLE string representation of integer AutoFitBehavior value.
toString(autoFitBehavior: int) → StringReturns DotNetStyle string representation of integer AutoFitBehavior value.
fromName(autoFitBehaviorName: String) → intReturns integer representation by AutoFitBehavior name.
getValues() → int[]Returns array of AutoFitBehavior values.

See Also