StructColumnLength
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
Type
Gets the type of the ColumnLength instance.
Value
Gets the actual fixed size of the ColumnLength instance. If the length is not fixed-size, double.NaN is returned instead.
Methods
Equals(ColumnLength)
Determines whether the specified ColumnLength is equal to the current ColumnLength.
Declaration
public bool Equals(ColumnLength other)
Parameters
other
The object to compare with the current object.
Returns
true if the specified ColumnLength is equal to the current ColumnLength; otherwise, false.
Implements
Equals(object)
Determines whether the specified object is equal to the current ColumnLength.
Declaration
public override bool Equals(object obj)
Parameters
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
FromColumnLengthType(ColumnLengthType)
Creates a new instance of the ColumnLength class by type.
Declaration
public static ColumnLength FromColumnLengthType(ColumnLengthType type)
Parameters
type
The type of the ColumnLength instance.
Returns
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
length
The actual fixed size of the ColumnLength instance.
Returns
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
A 32-bit signed integer that is the hash code for this instance.
Overrides
Operators
implicit operator ColumnLength(ColumnLengthType)
Converts from ColumnLengthType to ColumnLength.
Declaration
public static implicit operator ColumnLength(ColumnLengthType type)
Parameters
type
The type of the ColumnLength to be created.
Returns
A ColumnLength of the type specified.
implicit operator ColumnLength(double)
Converts from double to a fixed-size ColumnLength.
Declaration
public static implicit operator ColumnLength(double length)
Parameters
length
The length of the fixed-size ColumnLength to be created.
Returns
A fixed-size ColumnLength.
operator !=(ColumnLength, ColumnLength)
Compares two instance of the ColumnLength struct for equality.
Declaration
public static bool operator !=(ColumnLength left, ColumnLength right)
Parameters
left
The left-hand operand of the equality operator.
right
The right-hand operand of the equality operator.
Returns
true if the left and the right-hand operands are not equal; false otherwise.
operator ==(ColumnLength, ColumnLength)
Compares two instance of the ColumnLength struct for equality.
Declaration
public static bool operator ==(ColumnLength left, ColumnLength right)
Parameters
left
The left-hand operand of the equality operator.
right
The right-hand operand of the equality operator.
Returns
true if the left and the right-hand operands are equal; false otherwise.