Class ColumnLength
Describes the length of a column which could be either fixed-sized or auto-sized.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.GanttView.dll
Syntax
public sealed class ColumnLength : ValueType, IEquatable<ColumnLength>
Properties
Type
Gets the type of the ColumnLength instance.
Declaration
public ColumnLengthType Type { get; }
Property Value
ColumnLengthType
|
Value
Gets the actual fixed size of the ColumnLength instance. If the length is not fixed-size, double.NaN is returned instead.
Declaration
public double Value { get; }
Property Value
System.Double
|
Methods
Equals(Object)
Determines whether the specified System.Object is equal to the current ColumnLength.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
The object to compare with the current object. |
Returns
System.Boolean
true if the specified System.Object is of type ColumnLength and is equal to the current ColumnLength; otherwise, false. |
Equals(ColumnLength)
Determines whether the specified ColumnLength is equal to the current ColumnLength.
Declaration
public bool Equals(ColumnLength other)
Parameters
ColumnLength
other
The object to compare with the current object. |
Returns
System.Boolean
true if the specified ColumnLength is equal to the current ColumnLength; otherwise, false. |
FromColumnLengthType(ColumnLengthType)
Creates a new instance of the ColumnLength class by type.
Declaration
public static ColumnLength FromColumnLengthType(ColumnLengthType type)
Parameters
ColumnLengthType
type
The type of the ColumnLength instance. |
Returns
ColumnLength
|
FromDouble(Double)
Creates a new fixed-size instance of the ColumnLength class using the provided double value.
Declaration
public static ColumnLength FromDouble(double length)
Parameters
System.Double
length
The actual fixed size of the ColumnLength instance. |
Returns
ColumnLength
A new fixed-size instance of the ColumnLength class using the provided double value. |
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
System.Int32
A 32-bit signed integer that is the hash code for this instance. |
Operators
Equality(ColumnLength, ColumnLength)
Compares two instance of the ColumnLength struct for equality.
Declaration
public static bool operator ==(ColumnLength left, ColumnLength right)
Parameters
ColumnLength
left
The left-hand operand of the equality operator. |
ColumnLength
right
The right-hand operand of the equality operator. |
Returns
System.Boolean
true if the left and the right-hand operands are equal; false otherwise. |
Implicit(Double to ColumnLength)
Converts from System.Double to a fixed-size ColumnLength.
Declaration
public static implicit operator ColumnLength(double length)
Parameters
System.Double
length
The length of the fixed-size ColumnLength to be created. |
Returns
ColumnLength
A fixed-size ColumnLength. |
Implicit(ColumnLengthType to ColumnLength)
Converts from ColumnLengthType to ColumnLength.
Declaration
public static implicit operator ColumnLength(ColumnLengthType type)
Parameters
ColumnLengthType
type
The type of the ColumnLength to be created. |
Returns
ColumnLength
A ColumnLength of the type specified. |
Inequality(ColumnLength, ColumnLength)
Compares two instance of the ColumnLength struct for equality.
Declaration
public static bool operator !=(ColumnLength left, ColumnLength right)
Parameters
ColumnLength
left
The left-hand operand of the equality operator. |
ColumnLength
right
The right-hand operand of the equality operator. |
Returns
System.Boolean
true if the left and the right-hand operands are not equal; false otherwise. |