Struct Length
Assembly: Yaui.dll
View Source
Declaration
[Serializable]
public struct Length : IEquatable<Length>
Implements:
System.IEquatable<Yaui.Length>
Properties
Auto
View Source
Declaration
public static Length Auto { get; }
Fields
value
View Source
Declaration
public float value
unit
View Source
Declaration
public LengthUnit unit
Methods
Points(float)
View Source
Declaration
public static Length Points(float value)
Returns
Parameters
| Type | Name |
|---|---|
System.Single | value |
Percent(float)
View Source
Declaration
public static Length Percent(float value)
Returns
Parameters
| Type | Name |
|---|---|
System.Single | value |
Equals(Length)
Indicates whether the current object is equal to another object of the same type.
View Source
Declaration
public bool Equals(Length other)
Returns
System.Boolean: true if the current object is equal to the <code class="paramref">other</code> parameter; otherwise, false.
Parameters
| Type | Name | Description |
|---|---|---|
| Yaui.Length | other | An object to compare with this object. |
Equals(object)
Indicates whether this instance and a specified object are equal.
View Source
Declaration
public override bool Equals(object obj)
Returns
System.Boolean: true if <code class="paramref">obj</code> and this instance are the same type and represent the same value; otherwise, false.
Parameters
| Type | Name | Description |
|---|---|---|
System.Object | obj | The object to compare with the current instance. |
GetHashCode()
Returns the hash code for this instance.
View Source
Declaration
public override int GetHashCode()
Returns
System.Int32: A 32-bit signed integer that is the hash code for this instance.### ToString()
Returns the fully qualified type name of this instance.
View Source
Declaration
public override string ToString()
Returns
System.String: The fully qualified type name.
Implements
System.IEquatable<Yaui.Length>