StructGridViewLength
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
GridViewLength(double)
Initializes a new instance of the GridViewLength struct. Initializes as an absolute value in pixels.
GridViewLength(double, GridViewLengthUnitType)
Initializes a new instance of the GridViewLength struct. Initializes to a specified value and unit.
Declaration
public GridViewLength(double value, GridViewLengthUnitType type)
Parameters
value
type
GridViewLength(double, GridViewLengthUnitType, double, double)
Initializes a new instance of the GridViewLength struct. Initializes to a specified value and unit.
Declaration
public GridViewLength(double value, GridViewLengthUnitType type, double desiredValue, double displayValue)
Parameters
value
type
desiredValue
displayValue
Properties
Auto
Returns a value initialized to mean "auto".
Declaration
public static GridViewLength Auto { get; }
Property Value
DesiredValue
Returns the desired value of this instance.
DisplayValue
Returns the display value of this instance.
IsAbsolute
Returns true if this GridViewLength instance holds
an absolute (pixel) value.
IsAuto
Returns true if this GridViewLength instance is
automatic (not specified).
IsSizeToCells
Returns true if this instance is to size to the cells of a column or row.
IsSizeToHeader
Returns true if this instance is to size to the header of a column or row.
IsStar
Returns true if this GridViewLength instance holds a weighted proportion
of available space.
SizeToCells
Returns a value initialized to mean "size to cells".
Declaration
public static GridViewLength SizeToCells { get; }
Property Value
SizeToHeader
Returns a value initialized to mean "size to header".
Declaration
public static GridViewLength SizeToHeader { get; }
Property Value
UnitType
Returns unit type of this GridViewLength instance.
Declaration
public GridViewLengthUnitType UnitType { get; }
Property Value
Methods
Equals(GridViewLength)
Compares this instance of GridViewLength with another instance.
Declaration
public bool Equals(GridViewLength other)
Parameters
other
Returns
Implements
ToString(IFormatProvider)
Declaration
public string ToString(IFormatProvider provider)
Parameters
provider
Returns
Operators
implicit operator GridViewLength(double)
Allows for values of type double to be implicitly converted to GridViewLength.
Declaration
[SuppressMessage("Usage", "CA2225:Operator overloads have named alternates", Justification = "<Pending>")]
public static implicit operator GridViewLength(double value)
Parameters
value
The number of pixels to represent.
Returns
operator !=(GridViewLength, GridViewLength)
Overloaded operator, compares 2 GridViewLength's.
Declaration
public static bool operator !=(GridViewLength left, GridViewLength right)
Parameters
left
right
Returns
operator ==(GridViewLength, GridViewLength)
Overloaded operator, compares 2 GridViewLength's.
Declaration
public static bool operator ==(GridViewLength left, GridViewLength right)
Parameters
left
right
Returns