LengthOrAuto Class

LengthOrAuto class

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

public class LengthOrAuto : Unit

Constructors

NameDescription
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

NameDescription
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

NameDescription
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

See Also