GridViewLength
GridViewLength is the type used for various length properties in GridViewDataControl.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.GridView.dll
Syntax:
[TypeConverter(typeof(GridViewLengthConverter))]
public struct GridViewLength : IEquatable<GridViewLength>
Implements:
Constructors
Initializes a new instance of the GridViewLength struct. Initializes to a specified value and unit.
public GridViewLength(double value, GridViewLengthUnitType type, double desiredValue, double displayValue)
Initializes a new instance of the GridViewLength struct. Initializes to a specified value and unit.
public GridViewLength(double value, GridViewLengthUnitType type)
Initializes a new instance of the GridViewLength struct. Initializes as an absolute value in pixels.
Properties
Returns a value initialized to mean "auto".
public static GridViewLength Auto { get; }
Returns the desired value of this instance.
public double DesiredValue { get; }
Returns the display value of this instance.
public double DisplayValue { get; }
Returns true if this GridViewLength instance holds
an absolute (pixel) value.
public bool IsAbsolute { get; }
Returns true if this GridViewLength instance is
automatic (not specified).
public bool IsAuto { get; }
Returns true if this instance is to size to the cells of a column or row.
public bool IsSizeToCells { get; }
Returns true if this instance is to size to the header of a column or row.
public bool IsSizeToHeader { get; }
Returns true if this GridViewLength instance holds a weighted proportion
of available space.
public bool IsStar { get; }
Returns a value initialized to mean "size to cells".
public static GridViewLength SizeToCells { get; }
Returns a value initialized to mean "size to header".
public static GridViewLength SizeToHeader { get; }
Returns unit type of this GridViewLength instance.
public GridViewLengthUnitType UnitType { get; }
Methods
Compares this instance of GridViewLength with another instance.
Operators
Allows for values of type double to be implicitly converted to GridViewLength.
public static implicit operator GridViewLength(double value)
The number of pixels to represent.
Returns:Overloaded operator, compares 2 GridViewLength's.
public static bool operator !=(GridViewLength left, GridViewLength right)
Overloaded operator, compares 2 GridViewLength's.
public static bool operator ==(GridViewLength left, GridViewLength right)