LengthOrAuto Class
LengthOrAuto class
Represents a container for storage length or ‘auto’ units..
public class LengthOrAuto : Unit
Constructors
| Name | Description |
|---|
| LengthOrAuto() | Initializes a new instance of the LengthOrAuto class and sets state to ‘auto’. |
| LengthOrAuto(Length) | Initializes a new instance of the LengthOrAuto class and sets state to ’lenght’. |
Properties
| Name | Description |
|---|
| IsAuto { get; } | Gets a value indicating whether this instance is in ‘auto’. |
| Length { get; set; } | Gets or sets the length. |
| UnitType { get; } | Gets the unit type of the Unit. |
Methods
| Name | Description |
|---|
| override Equals(object) | Determines whether the specified Object, is equal to this instance. |
| override Equals(Unit) | Determines whether the specified Unit, is equal to this instance. |
| override GetHashCode() | Returns a hash code for this instance. |
| SetAuto() | Resets container to state ‘auto’. |
| override ToString() | Returns a String that represents this instance. |
| implicit operator | Performs an implicit conversion from Length to LengthOrAuto. |
See Also