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