PreferredWidth

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

NameTypeAccessDescription
typeintReadGets the type.
valuedoubleReadGets the preferred width value.
AUTOPreferredWidthRead/WriteReturns an instance that represents the “preferred width is not specified” value.

Methods

SignatureDescription
fromPercent(percent: double) → PreferredWidthA creation method that returns a new instance that represents a preferred width specified as a percentage.
fromPoints(points: double) → PreferredWidthA creation method that returns a new instance that represents a preferred width specified using a number of points.
getType() → intReturns the type.
getValue() → doubleGets the preferred width value.
equals(other: PreferredWidth) → booleanDetermines whether the specified PreferredWidth is equal in value to the current PreferredWidth.
equals(obj: Object) → booleanDetermines whether the specified object is equal in value to the current object.
hashCode() → intServes as a hash function for this type.
toString() → StringReturns a user-friendly string that displays the value of this object.

See Also