New to Telerik UI for WPFStart a free 30-day trial

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:

C#
[TypeConverter(typeof(ColumnLengthTypeConverter))]
public struct ColumnLength : IEquatable<ColumnLength>

Implements: IEquatable<ColumnLength>

Inherited Members ValueType.ToString()

Properties

Gets the type of the ColumnLength instance.

C#
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.

C#
public double Value { get; }

Methods

Determines whether the specified ColumnLength is equal to the current ColumnLength.

C#
public bool Equals(ColumnLength other)
Parameters:otherColumnLength

The object to compare with the current object.

Returns:

bool

true if the specified ColumnLength is equal to the current ColumnLength; otherwise, false.

Implements: IEquatable<ColumnLength>.Equals(ColumnLength)

Determines whether the specified object is equal to the current ColumnLength.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with the current object.

Returns:

bool

true if the specified object is of type ColumnLength and is equal to the current ColumnLength; otherwise, false.

Overrides: ValueType.Equals(object)

Creates a new instance of the ColumnLength class by type.

C#
public static ColumnLength FromColumnLengthType(ColumnLengthType type)
Parameters:typeColumnLengthType

The type of the ColumnLength instance.

Returns:

ColumnLength

Creates a new fixed-size instance of the ColumnLength class using the provided double value.

C#
public static ColumnLength FromDouble(double length)
Parameters:lengthdouble

The actual fixed size of the ColumnLength instance.

Returns:

ColumnLength

A new fixed-size instance of the ColumnLength class using the provided double value.

Returns the hash code for this instance.

C#
public override int GetHashCode()
Returns:

int

A 32-bit signed integer that is the hash code for this instance.

Overrides: ValueType.GetHashCode()

Operators

Converts from ColumnLengthType to ColumnLength.

C#
public static implicit operator ColumnLength(ColumnLengthType type)
Parameters:typeColumnLengthType

The type of the ColumnLength to be created.

Returns:

ColumnLength

A ColumnLength of the type specified.

Converts from double to a fixed-size ColumnLength.

C#
public static implicit operator ColumnLength(double length)
Parameters:lengthdouble

The length of the fixed-size ColumnLength to be created.

Returns:

ColumnLength

A fixed-size ColumnLength.

Compares two instance of the ColumnLength struct for equality.

C#
public static bool operator !=(ColumnLength left, ColumnLength right)
Parameters:leftColumnLength

The left-hand operand of the equality operator.

rightColumnLength

The right-hand operand of the equality operator.

Returns:

bool

true if the left and the right-hand operands are not equal; false otherwise.

Compares two instance of the ColumnLength struct for equality.

C#
public static bool operator ==(ColumnLength left, ColumnLength right)
Parameters:leftColumnLength

The left-hand operand of the equality operator.

rightColumnLength

The right-hand operand of the equality operator.

Returns:

bool

true if the left and the right-hand operands are equal; false otherwise.