Click or drag to resize
DataGridLength Structure
Represents the lengths of elements within the System.Windows.Controls.DataGrid control.

Namespace: Windows.UI.Xaml.Controls
Assembly: CSharpXamlForHtml5 (in CSharpXamlForHtml5.dll) Version: 1.0.0.0
Syntax
C#
public struct DataGridLength : IEquatable<DataGridLength>

The DataGridLength type exposes the following members.

Constructors
  NameDescription
Public methodDataGridLength(Double)
Initializes a new instance of the System.Windows.Controls.DataGridLength class with an absolute value in pixels.
Public methodDataGridLength(Double, DataGridLengthUnitType)
Initializes a new instance of the System.Windows.Controls.DataGridLength class with a specified value and unit.
Top
Methods
  NameDescription
Public methodEquals(DataGridLength)
Determines whether the specified System.Windows.Controls.DataGridLength is equal to the current System.Windows.Controls.DataGridLength.
Public methodEquals(Object)
Determines whether the specified object is equal to the current System.Windows.Controls.DataGridLength.
(Overrides ValueTypeEquals(Object).)
Public methodGetHashCode
Gets a hash code for the System.Windows.Controls.DataGridLength.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Compares two System.Windows.Controls.DataGridLength structures for equality.
Public operatorStatic member(Double to DataGridLength)
Converts a System.Double to an instance of the System.Windows.Controls.DataGridLength class.
Public operatorStatic memberInequality
Compares two System.Windows.Controls.DataGridLength structures to determine whether they are not equal.
Top
Properties
  NameDescription
Public propertyStatic memberAuto
Gets a System.Windows.Controls.DataGridLength structure that represents the standard automatic sizing mode.
Public propertyIsAbsolute
Gets a value that indicates whether this instance sizes elements based on a fixed pixel value.
Public propertyIsAuto
Gets a value that indicates whether this instance automatically sizes elements based on both the content of cells and the column headers.
Public propertyIsStar
Gets a value that indicates whether this instance automatically sizes elements based on a weighted proportion of available space.
Public propertyUnitType
Gets the type that is used to determine how the size of the element is calculated.
Public propertyValue
Gets the absolute value of the System.Windows.Controls.DataGridLength in pixels, or 1.0 if the System.Windows.Controls.DataGridLength.UnitType property is set to System.Windows.Controls.DataGridLengthUnitType.Auto.
Top
See Also