Struct
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:

cs-api-definition
[TypeConverter(typeof(ColumnLengthTypeConverter))]
public struct ColumnLength : IEquatable<ColumnLength>

Implements: IEquatable<ColumnLength>

Inherited Members ValueType.ToString()

Properties

Type

Gets the type of the ColumnLength instance.

Declaration

cs-api-definition
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

cs-api-definition
public double Value { get; }

Property Value

double

Methods

Equals(ColumnLength)

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

Declaration

cs-api-definition
public bool Equals(ColumnLength other)

Parameters

other

ColumnLength

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)

Equals(object)

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

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

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)

FromColumnLengthType(ColumnLengthType)

Creates a new instance of the ColumnLength class by type.

Declaration

cs-api-definition
public static ColumnLength FromColumnLengthType(ColumnLengthType type)

Parameters

type

ColumnLengthType

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

cs-api-definition
public static ColumnLength FromDouble(double length)

Parameters

length

double

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

cs-api-definition
public override int GetHashCode()

Returns

int

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

Overrides ValueType.GetHashCode()

Operators

implicit operator ColumnLength(ColumnLengthType)

Converts from ColumnLengthType to ColumnLength.

Declaration

cs-api-definition
public static implicit operator ColumnLength(ColumnLengthType type)

Parameters

type

ColumnLengthType

The type of the ColumnLength to be created.

Returns

ColumnLength

A ColumnLength of the type specified.

implicit operator ColumnLength(double)

Converts from double to a fixed-size ColumnLength.

Declaration

cs-api-definition
public static implicit operator ColumnLength(double length)

Parameters

length

double

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

Returns

ColumnLength

A fixed-size ColumnLength.

operator !=(ColumnLength, ColumnLength)

Compares two instance of the ColumnLength struct for equality.

Declaration

cs-api-definition
public static bool operator !=(ColumnLength left, ColumnLength right)

Parameters

left

ColumnLength

The left-hand operand of the equality operator.

right

ColumnLength

The right-hand operand of the equality operator.

Returns

bool

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

cs-api-definition
public static bool operator ==(ColumnLength left, ColumnLength right)

Parameters

left

ColumnLength

The left-hand operand of the equality operator.

right

ColumnLength

The right-hand operand of the equality operator.

Returns

bool

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