DataGridLength Structure
.NET Framework 4.5
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Represents the lengths of elements within the DataGrid control.
Namespace: System.Windows.Controls
Assembly: PresentationFramework (in PresentationFramework.dll)
The DataGridLength type exposes the following members.
| 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).) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Gets a hash code for the DataGridLength. (Overrides ValueType.GetHashCode().) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Overrides ValueType.ToString().) |
| Name | Description | |
|---|---|---|
![]() ![]() | Equality | Compares two DataGridLength structures for equality. |
![]() ![]() | Implicit(Double to DataGridLength) | Converts a Double to an instance of the DataGridLength class. |
![]() ![]() | Inequality | Compares two DataGridLength structures to determine whether they are not equal. |
Windows 8 Consumer Preview, Windows Server 8 Beta, Windows 7, Windows Server 2008 SP2, Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
