PreferredWidth

PreferredWidth

Overview

PreferredWidth is a class in Aspose.Words FOSS for .NET.

Represents a value and its unit of measure that is used to specify the preferred width of a table or a cell.

This class provides 6 methods for working with PreferredWidth objects in .NET programs. Available methods include: Equals, FromPercent, FromPoints, GetHashCode, ToString. All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package. Properties: Auto, Type, Value.

Properties

NameTypeAccessDescription
TypePreferredWidthTypeReadGets the unit of measure used for this preferred width value.
ValuedoubleReadGets the preferred width value.
AutoPreferredWidthReadReturns an instance that represents the “preferred width is not specified” value.

Methods

SignatureDescription
FromPercent(percent: double)A creation method that returns a new instance that represents a preferred width specified as a percentage.
FromPoints(points: double)A creation method that returns a new instance that represents a preferred width specified using a number of points.
Equals(other: PreferredWidth)Determines whether the specified PreferredWidth is equal in value to the current PreferredWidth.
Equals(obj: object)Determines whether the specified object is equal in value to the current object.
GetHashCode()Serves as a hash function for this type.
ToString()Returns a user-friendly string that displays the value of this object.

See Also