LengthOrAuto class

LengthOrAuto class

Represents a container for storage length or ‘auto’ units..

Inheritance: LengthOrAutoUnit

The LengthOrAuto type exposes the following members:

Constructors

ConstructorDescription
initInitializes a new instance of the LengthOrAuto class and sets state to ‘auto’.
initInitializes a new instance of the LengthOrAuto class and sets state to ’lenght’.

Properties

PropertyDescription
unit_typeGets the unit type of the Unit.
lengthGets or sets the length.
is_autoGets a value indicating whether this instance is in ‘auto’.

Methods

MethodDescription
equalsDetermines whether the specified Unit, is equal to this instance.
from_centimetersReturns a Length object that is represented in centimeters.
from_millimetersReturns a Length object that is represented in millimeters.
from_quarter_millimetersReturns a Length object that is represented in quarter-millimeters.
from_inchesReturns a Length object that is represented in inches.
from_picasReturns a Length object that is represented in picas.
from_pointsReturns a Length object that is represented in points.
from_pixelsReturns a Length object that is represented in pixels.
from_degreesReturns a Angle object that is represented in degrees.
from_gradiansReturns a Angle object that is represented in gradians.
from_radiansReturns a Angle object that is represented in radians.
from_turnsReturns a Angle object that is represented in turns.
from_secondsReturns a Time object that is represented in seconds.
from_millisecondsReturns a Time object that is represented in milliseconds.
from_hertzReturns a Frequency object that is represented in hertz.
from_kilo_hertzReturns a Frequency object that is represented in kiloHertz.
from_dots_per_inchReturns a Resolution object that is represented in dots per inch.
from_dots_per_centimetersReturns a Resolution object that is represented in dots per centimeters.
from_dots_per_pixelReturns a Resolution object that is represented in dots per pixels.
set_autoResets container to state ‘auto’.

See Also