Struct
GridViewLength

GridViewLength is the type used for various length properties in GridViewDataControl.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.GridView.dll

Syntax:

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

Implements: IEquatable<GridViewLength>

Constructors

GridViewLength(double)

Initializes a new instance of the GridViewLength struct. Initializes as an absolute value in pixels.

Declaration

cs-api-definition
public GridViewLength(double value)

Parameters

value

double

GridViewLength(double, GridViewLengthUnitType)

Initializes a new instance of the GridViewLength struct. Initializes to a specified value and unit.

Declaration

cs-api-definition
public GridViewLength(double value, GridViewLengthUnitType type)

Parameters

value

double

type

GridViewLengthUnitType

GridViewLength(double, GridViewLengthUnitType, double, double)

Initializes a new instance of the GridViewLength struct. Initializes to a specified value and unit.

Declaration

cs-api-definition
public GridViewLength(double value, GridViewLengthUnitType type, double desiredValue, double displayValue)

Parameters

value

double

type

GridViewLengthUnitType

desiredValue

double

displayValue

double

Properties

Auto

Returns a value initialized to mean "auto".

Declaration

cs-api-definition
public static GridViewLength Auto { get; }

Property Value

GridViewLength

DesiredValue

Returns the desired value of this instance.

Declaration

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

Property Value

double

DisplayValue

Returns the display value of this instance.

Declaration

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

Property Value

double

IsAbsolute

Returns true if this GridViewLength instance holds an absolute (pixel) value.

Declaration

cs-api-definition
public bool IsAbsolute { get; }

Property Value

bool

IsAuto

Returns true if this GridViewLength instance is automatic (not specified).

Declaration

cs-api-definition
public bool IsAuto { get; }

Property Value

bool

IsSizeToCells

Returns true if this instance is to size to the cells of a column or row.

Declaration

cs-api-definition
public bool IsSizeToCells { get; }

Property Value

bool

IsSizeToHeader

Returns true if this instance is to size to the header of a column or row.

Declaration

cs-api-definition
public bool IsSizeToHeader { get; }

Property Value

bool

IsStar

Returns true if this GridViewLength instance holds a weighted proportion of available space.

Declaration

cs-api-definition
public bool IsStar { get; }

Property Value

bool

SizeToCells

Returns a value initialized to mean "size to cells".

Declaration

cs-api-definition
public static GridViewLength SizeToCells { get; }

Property Value

GridViewLength

SizeToHeader

Returns a value initialized to mean "size to header".

Declaration

cs-api-definition
public static GridViewLength SizeToHeader { get; }

Property Value

GridViewLength

UnitType

Returns unit type of this GridViewLength instance.

Declaration

cs-api-definition
public GridViewLengthUnitType UnitType { get; }

Property Value

GridViewLengthUnitType

Value

Returns value part of this DataGridLength instance.

Declaration

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

Property Value

double

Methods

Equals(GridViewLength)

Compares this instance of GridViewLength with another instance.

Declaration

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

Parameters

other

GridViewLength

Returns

bool

Implements IEquatable<GridViewLength>.Equals(GridViewLength)

Equals(object)

Declaration

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

Parameters

obj

object

Returns

bool

Overrides ValueType.Equals(object)

GetHashCode()

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

Overrides ValueType.GetHashCode()

ToString()

Declaration

cs-api-definition
public override string ToString()

Returns

string

Overrides ValueType.ToString()

ToString(IFormatProvider)

Declaration

cs-api-definition
public string ToString(IFormatProvider provider)

Parameters

provider

IFormatProvider

Returns

string

Operators

implicit operator GridViewLength(double)

Allows for values of type double to be implicitly converted to GridViewLength.

Declaration

cs-api-definition
[SuppressMessage("Usage", "CA2225:Operator overloads have named alternates", Justification = "<Pending>")]
public static implicit operator GridViewLength(double value)

Parameters

value

double

The number of pixels to represent.

Returns

GridViewLength

operator !=(GridViewLength, GridViewLength)

Overloaded operator, compares 2 GridViewLength's.

Declaration

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

Parameters

left

GridViewLength

right

GridViewLength

Returns

bool

operator ==(GridViewLength, GridViewLength)

Overloaded operator, compares 2 GridViewLength's.

Declaration

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

Parameters

left

GridViewLength

right

GridViewLength

Returns

bool