
## LengthOrAuto class

Represents a container for storage length or 'auto' units..



**Inheritance:** [`LengthOrAuto`](/html/python-net/aspose.html.drawing/lengthorauto) → 
[`Unit`](/html/python-net/aspose.html.drawing/unit)



The LengthOrAuto type exposes the following members:

### Constructors
| Constructor | Description |
| :- | :- |
| [__init__](/html/python-net/aspose.html.drawing/lengthorauto/__init__/#) | Initializes a new instance of the [`LengthOrAuto`](/html/python-net/aspose.html.drawing/lengthorauto) class and sets state to 'auto'. |
| [__init__](/html/python-net/aspose.html.drawing/lengthorauto/__init__/#aspose.html.drawing.Length) | Initializes a new instance of the [`LengthOrAuto`](/html/python-net/aspose.html.drawing/lengthorauto) class and sets state to 'lenght'. |


### Properties
| Property | Description |
| :- | :- |
| [unit_type](/html/python-net/aspose.html.drawing/lengthorauto/unit_type) | Gets the unit type of the [`Unit`](/html/python-net/aspose.html.drawing/unit). |
| [length](/html/python-net/aspose.html.drawing/lengthorauto/length) | Gets or sets the length. |
| [is_auto](/html/python-net/aspose.html.drawing/lengthorauto/is_auto) | Gets a value indicating whether this instance is in 'auto'. |


### Methods
| Method | Description |
| :- | :- |
| [equals](/html/python-net/aspose.html.drawing/lengthorauto/equals/#aspose.html.drawing.Unit) | Determines whether the specified [`Unit`](/html/python-net/aspose.html.drawing/unit), is equal to this instance. |
| [from_centimeters](/html/python-net/aspose.html.drawing/lengthorauto/from_centimeters/#float) | Returns a [`Length`](/html/python-net/aspose.html.drawing/length) object that is represented in centimeters. |
| [from_millimeters](/html/python-net/aspose.html.drawing/lengthorauto/from_millimeters/#float) | Returns a [`Length`](/html/python-net/aspose.html.drawing/length) object that is represented in millimeters. |
| [from_quarter_millimeters](/html/python-net/aspose.html.drawing/lengthorauto/from_quarter_millimeters/#float) | Returns a [`Length`](/html/python-net/aspose.html.drawing/length) object that is represented in quarter-millimeters. |
| [from_inches](/html/python-net/aspose.html.drawing/lengthorauto/from_inches/#float) | Returns a [`Length`](/html/python-net/aspose.html.drawing/length) object that is represented in inches. |
| [from_picas](/html/python-net/aspose.html.drawing/lengthorauto/from_picas/#float) | Returns a [`Length`](/html/python-net/aspose.html.drawing/length) object that is represented in picas. |
| [from_points](/html/python-net/aspose.html.drawing/lengthorauto/from_points/#float) | Returns a [`Length`](/html/python-net/aspose.html.drawing/length) object that is represented in points. |
| [from_pixels](/html/python-net/aspose.html.drawing/lengthorauto/from_pixels/#float) | Returns a [`Length`](/html/python-net/aspose.html.drawing/length) object that is represented in pixels. |
| [from_degrees](/html/python-net/aspose.html.drawing/lengthorauto/from_degrees/#float) | Returns a [`Angle`](/html/python-net/aspose.html.drawing/angle) object that is represented in degrees. |
| [from_gradians](/html/python-net/aspose.html.drawing/lengthorauto/from_gradians/#float) | Returns a [`Angle`](/html/python-net/aspose.html.drawing/angle) object that is represented in gradians. |
| [from_radians](/html/python-net/aspose.html.drawing/lengthorauto/from_radians/#float) | Returns a [`Angle`](/html/python-net/aspose.html.drawing/angle) object that is represented in radians. |
| [from_turns](/html/python-net/aspose.html.drawing/lengthorauto/from_turns/#float) | Returns a [`Angle`](/html/python-net/aspose.html.drawing/angle) object that is represented in turns. |
| [from_seconds](/html/python-net/aspose.html.drawing/lengthorauto/from_seconds/#float) | Returns a [`Time`](/html/python-net/aspose.html.drawing/time) object that is represented in seconds. |
| [from_milliseconds](/html/python-net/aspose.html.drawing/lengthorauto/from_milliseconds/#float) | Returns a [`Time`](/html/python-net/aspose.html.drawing/time) object that is represented in milliseconds. |
| [from_hertz](/html/python-net/aspose.html.drawing/lengthorauto/from_hertz/#float) | Returns a [`Frequency`](/html/python-net/aspose.html.drawing/frequency) object that is represented in hertz. |
| [from_kilo_hertz](/html/python-net/aspose.html.drawing/lengthorauto/from_kilo_hertz/#float) | Returns a [`Frequency`](/html/python-net/aspose.html.drawing/frequency) object that is represented in kiloHertz. |
| [from_dots_per_inch](/html/python-net/aspose.html.drawing/lengthorauto/from_dots_per_inch/#float) | Returns a [`Resolution`](/html/python-net/aspose.html.drawing/resolution) object that is represented in dots per inch. |
| [from_dots_per_centimeters](/html/python-net/aspose.html.drawing/lengthorauto/from_dots_per_centimeters/#float) | Returns a [`Resolution`](/html/python-net/aspose.html.drawing/resolution) object that is represented in dots per centimeters. |
| [from_dots_per_pixel](/html/python-net/aspose.html.drawing/lengthorauto/from_dots_per_pixel/#float) | Returns a [`Resolution`](/html/python-net/aspose.html.drawing/resolution) object that is represented in dots per pixels. |
| [set_auto](/html/python-net/aspose.html.drawing/lengthorauto/set_auto/#) | Resets container to state 'auto'. |



### See Also
* module [`aspose.html.drawing`](..)
* class [`Angle`](/html/python-net/aspose.html.drawing/angle)
* class [`Frequency`](/html/python-net/aspose.html.drawing/frequency)
* class [`Length`](/html/python-net/aspose.html.drawing/length)
* class [`LengthOrAuto`](/html/python-net/aspose.html.drawing/lengthorauto)
* class [`Resolution`](/html/python-net/aspose.html.drawing/resolution)
* class [`Time`](/html/python-net/aspose.html.drawing/time)
* class [`Unit`](/html/python-net/aspose.html.drawing/unit)
