LengthOrAuto class
LengthOrAuto class
Represents a container for storage length or ‘auto’ units..
Inheritance: LengthOrAuto
→
Unit
The LengthOrAuto type exposes the following members:
Constructors
Constructor | Description |
---|---|
init | Initializes a new instance of the LengthOrAuto class and sets state to ‘auto’. |
init | Initializes a new instance of the LengthOrAuto class and sets state to ’lenght’. |
Properties
Property | Description |
---|---|
unit_type | Gets the unit type of the Unit . |
length | Gets or sets the length. |
is_auto | Gets a value indicating whether this instance is in ‘auto’. |
Methods
Method | Description |
---|---|
equals | Determines whether the specified Unit , is equal to this instance. |
from_centimeters | Returns a Length object that is represented in centimeters. |
from_millimeters | Returns a Length object that is represented in millimeters. |
from_quarter_millimeters | Returns a Length object that is represented in quarter-millimeters. |
from_inches | Returns a Length object that is represented in inches. |
from_picas | Returns a Length object that is represented in picas. |
from_points | Returns a Length object that is represented in points. |
from_pixels | Returns a Length object that is represented in pixels. |
from_degrees | Returns a Angle object that is represented in degrees. |
from_gradians | Returns a Angle object that is represented in gradians. |
from_radians | Returns a Angle object that is represented in radians. |
from_turns | Returns a Angle object that is represented in turns. |
from_seconds | Returns a Time object that is represented in seconds. |
from_milliseconds | Returns a Time object that is represented in milliseconds. |
from_hertz | Returns a Frequency object that is represented in hertz. |
from_kilo_hertz | Returns a Frequency object that is represented in kiloHertz. |
from_dots_per_inch | Returns a Resolution object that is represented in dots per inch. |
from_dots_per_centimeters | Returns a Resolution object that is represented in dots per centimeters. |
from_dots_per_pixel | Returns a Resolution object that is represented in dots per pixels. |
set_auto | Resets container to state ‘auto’. |
See Also
- module
aspose.html.drawing
- class
Angle
- class
Frequency
- class
Length
- class
LengthOrAuto
- class
Resolution
- class
Time
- class
Unit