DataGridLength Structure
Represents the lengths of elements within the DataGrid control.
Assembly: PresentationFramework (in PresentationFramework.dll)
| Name | Description | |
|---|---|---|
![]() | DataGridLength(Double) | Initializes a new instance of the DataGridLength class with an absolute value in pixels. |
![]() | DataGridLength(Double, DataGridLengthUnitType) | Initializes a new instance of the DataGridLength class with a specified value and unit. |
![]() | DataGridLength(Double, DataGridLengthUnitType, Double, Double) | Initializes a new instance of the DataGridLength class with the specified value, unit, desired value, and display value. |
| Name | Description | |
|---|---|---|
![]() ![]() | Auto | Gets a DataGridLength structure that represents the standard automatic sizing mode. |
![]() | DesiredValue | Gets the calculated pixel value needed for the element. |
![]() | DisplayValue | Gets the pixel value allocated for the size of the element. |
![]() | IsAbsolute | Gets a value that indicates whether this instance sizes elements based on a fixed pixel value. |
![]() | IsAuto | Gets a value that indicates whether this instance automatically sizes elements based on both the content of cells and the column headers. |
![]() | IsSizeToCells | Gets a value that indicates whether this instance automatically sizes elements based on the content of the cells. |
![]() | IsSizeToHeader | Gets a value that indicates whether this instance automatically sizes elements based on the header. |
![]() | IsStar | Gets a value that indicates whether this instance automatically sizes elements based on a weighted proportion of available space. |
![]() ![]() | SizeToCells | Gets a DataGridLength structure that represents the cell-based automatic sizing mode. |
![]() ![]() | SizeToHeader | Gets a DataGridLength structure that represents the header-based automatic sizing mode. |
![]() | UnitType | Gets the type that is used to determine how the size of the element is calculated. |
![]() | Value | Gets the absolute value of the DataGridLength in pixels. |
| Name | Description | |
|---|---|---|
![]() | Equals(DataGridLength) | Determines whether the specified DataGridLength is equal to the current DataGridLength. |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current DataGridLength.(Overrides ValueType::Equals(Object^).) |
![]() | GetHashCode() | Gets a hash code for the DataGridLength.(Overrides ValueType::GetHashCode().) |
![]() | GetType() | |
![]() | ToString() | Returns a string that represents the current object.(Overrides ValueType::ToString().) |
| Name | Description | |
|---|---|---|
![]() ![]() | Equality(DataGridLength, DataGridLength) | Compares two DataGridLength structures for equality. |
![]() ![]() | Implicit(Double to DataGridLength) | Converts a Double to an instance of the DataGridLength class. |
![]() ![]() | Inequality(DataGridLength, DataGridLength) | Compares two DataGridLength structures to determine whether they are not equal. |
Available since 4.0
Silverlight
Available since 2.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



