PreferredWidth
Overview
PreferredWidth is a class in Aspose.Words FOSS for Java.
Represents a value and its unit of measure that is used to specify the preferred width of a table or a cell.
Edition status of its 10 listed members (a property and its accessor methods are listed separately, overloads once): 10 not yet exercised by a verified example.
This class declares 8 methods for PreferredWidth objects in Java programs.
Available methods include: equals, fromPercent, fromPoints, getType, getValue, hashCode, toString.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: AUTO, type, value.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
type | int | Read | Gets the type. |
value | double | Read | Gets the preferred width value. |
AUTO | PreferredWidth | Read/Write | Returns an instance that represents the “preferred width is not specified” value. |
Methods
| Signature | Description |
|---|---|
fromPercent(percent: double) → PreferredWidth | A creation method that returns a new instance that represents a preferred width specified as a percentage. |
fromPoints(points: double) → PreferredWidth | A creation method that returns a new instance that represents a preferred width specified using a number of points. |
getType() → int | Returns the type. |
getValue() → double | Gets the preferred width value. |
equals(other: PreferredWidth) → boolean | Determines whether the specified PreferredWidth is equal in value to the current PreferredWidth. |
equals(obj: Object) → boolean | Determines whether the specified object is equal in value to the current object. |
hashCode() → int | Serves as a hash function for this type. |
toString() → String | Returns a user-friendly string that displays the value of this object. |