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

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

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.GridView.dll

Syntax:

C#
[TypeConverter(typeof(GridViewLengthConverter))]
public struct GridViewLength : IEquatable<GridViewLength>

Implements: IEquatable<GridViewLength>

Constructors

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

C#
public GridViewLength(double value, GridViewLengthUnitType type, double desiredValue, double displayValue)
Parameters:valuedoubletypeGridViewLengthUnitTypedesiredValuedoubledisplayValuedouble

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

C#
public GridViewLength(double value, GridViewLengthUnitType type)
Parameters:valuedoubletypeGridViewLengthUnitType

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

C#
public GridViewLength(double value)
Parameters:valuedouble

Properties

Returns a value initialized to mean "auto".

C#
public static GridViewLength Auto { get; }

Returns the desired value of this instance.

C#
public double DesiredValue { get; }

Returns the display value of this instance.

C#
public double DisplayValue { get; }

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

C#
public bool IsAbsolute { get; }

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

C#
public bool IsAuto { get; }

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

C#
public bool IsSizeToCells { get; }

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

C#
public bool IsSizeToHeader { get; }

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

C#
public bool IsStar { get; }

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

C#
public static GridViewLength SizeToCells { get; }

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

C#
public static GridViewLength SizeToHeader { get; }

Returns unit type of this GridViewLength instance.

C#
public GridViewLengthUnitType UnitType { get; }

Returns value part of this DataGridLength instance.

C#
public double Value { get; }

Methods

Compares this instance of GridViewLength with another instance.

C#
public bool Equals(GridViewLength other)
Parameters:otherGridViewLengthReturns:

bool

Implements: IEquatable<GridViewLength>.Equals(GridViewLength)

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

bool

Overrides: ValueType.Equals(object)

C#
public override int GetHashCode()
Returns:

int

Overrides: ValueType.GetHashCode()

C#
public override string ToString()
Returns:

string

Overrides: ValueType.ToString()

C#
public string ToString(IFormatProvider provider)
Parameters:providerIFormatProviderReturns:

string

Operators

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

C#
public static implicit operator GridViewLength(double value)
Parameters:valuedouble

The number of pixels to represent.

Returns:

GridViewLength

Overloaded operator, compares 2 GridViewLength's.

C#
public static bool operator !=(GridViewLength left, GridViewLength right)
Parameters:leftGridViewLengthrightGridViewLengthReturns:

bool

Overloaded operator, compares 2 GridViewLength's.

C#
public static bool operator ==(GridViewLength left, GridViewLength right)
Parameters:leftGridViewLengthrightGridViewLengthReturns:

bool