Class GridViewLength
GridViewLength is the type used for various length properties in GridViewDataControl.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.GridView.dll
Syntax
public sealed class GridViewLength : ValueType, IEquatable<GridViewLength>
Constructors
GridViewLength(Double)
Initializes a new instance of the GridViewLength struct. Initializes as an absolute value in pixels.
Declaration
public GridViewLength(double value)
Parameters
System.Double
value
|
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
System.Double
value
|
GridViewLengthUnitType
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
System.Double
value
|
GridViewLengthUnitType
type
|
System.Double
desiredValue
|
System.Double
displayValue
|
Properties
Auto
Returns a value initialized to mean "auto".
Declaration
public static GridViewLength Auto { get; }
Property Value
GridViewLength
|
DesiredValue
Returns the desired value of this instance.
Declaration
public double DesiredValue { get; }
Property Value
System.Double
|
DisplayValue
Returns the display value of this instance.
Declaration
public double DisplayValue { get; }
Property Value
System.Double
|
IsAbsolute
Returns true
if this GridViewLength instance holds
an absolute (pixel) value.
Declaration
public bool IsAbsolute { get; }
Property Value
System.Boolean
|
IsAuto
Returns true
if this GridViewLength instance is
automatic (not specified).
Declaration
public bool IsAuto { get; }
Property Value
System.Boolean
|
IsSizeToCells
Returns true
if this instance is to size to the cells of a column or row.
Declaration
public bool IsSizeToCells { get; }
Property Value
System.Boolean
|
IsSizeToHeader
Returns true
if this instance is to size to the header of a column or row.
Declaration
public bool IsSizeToHeader { get; }
Property Value
System.Boolean
|
IsStar
Returns true
if this GridViewLength instance holds a weighted proportion
of available space.
Declaration
public bool IsStar { get; }
Property Value
System.Boolean
|
SizeToCells
Returns a value initialized to mean "size to cells".
Declaration
public static GridViewLength SizeToCells { get; }
Property Value
GridViewLength
|
SizeToHeader
Returns a value initialized to mean "size to header".
Declaration
public static GridViewLength SizeToHeader { get; }
Property Value
GridViewLength
|
UnitType
Returns unit type of this GridViewLength instance.
Declaration
public GridViewLengthUnitType UnitType { get; }
Property Value
GridViewLengthUnitType
|
Value
Returns value part of this DataGridLength instance.
Declaration
public double Value { get; }
Property Value
System.Double
|
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
|
Returns
System.Boolean
|
Equals(GridViewLength)
Compares this instance of GridViewLength with another instance.
Declaration
public bool Equals(GridViewLength other)
Parameters
GridViewLength
other
|
Returns
System.Boolean
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
System.Int32
|
ToString()
Declaration
public override string ToString()
Returns
System.String
|
ToString(IFormatProvider)
Declaration
public string ToString(IFormatProvider provider)
Parameters
System.IFormatProvider
provider
|
Returns
System.String
|
Operators
Equality(GridViewLength, GridViewLength)
Overloaded operator, compares 2 GridViewLength's.
Declaration
public static bool operator ==(GridViewLength left, GridViewLength right)
Parameters
GridViewLength
left
|
GridViewLength
right
|
Returns
System.Boolean
|
Implicit(Double to GridViewLength)
Allows for values of type double to be implicitly converted to GridViewLength.
Declaration
public static implicit operator GridViewLength(double value)
Parameters
System.Double
value
The number of pixels to represent. |
Returns
GridViewLength
|
Inequality(GridViewLength, GridViewLength)
Overloaded operator, compares 2 GridViewLength's.
Declaration
public static bool operator !=(GridViewLength left, GridViewLength right)
Parameters
GridViewLength
left
|
GridViewLength
right
|
Returns
System.Boolean
|