Export (0) Print
Expand All

DataGridLength Structure

Represents the lengths of elements within the DataGrid control.

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

[TypeConverterAttribute(typeof(DataGridLengthConverter))]
public struct DataGridLength : IEquatable<DataGridLength>

The DataGridLength type exposes the following members.

  NameDescription
Public methodDataGridLength(Double)Initializes a new instance of the DataGridLength class with an absolute value in pixels.
Public methodDataGridLength(Double, DataGridLengthUnitType)Initializes a new instance of the DataGridLength class with a specified value and unit.
Public methodDataGridLength(Double, DataGridLengthUnitType, Double, Double)Initializes a new instance of the DataGridLength class with the specified value, unit, desired value, and display value.
Top

  NameDescription
Public propertyStatic memberAutoGets a DataGridLength structure that represents the standard automatic sizing mode.
Public propertyDesiredValueGets the calculated pixel value needed for the element.
Public propertyDisplayValueGets the pixel value allocated for the size of the element.
Public propertyIsAbsoluteGets a value that indicates whether this instance sizes elements based on a fixed pixel value.
Public propertyIsAutoGets a value that indicates whether this instance automatically sizes elements based on both the content of cells and the column headers.
Public propertyIsSizeToCellsGets a value that indicates whether this instance automatically sizes elements based on the content of the cells.
Public propertyIsSizeToHeaderGets a value that indicates whether this instance automatically sizes elements based on the header.
Public propertyIsStarGets a value that indicates whether this instance automatically sizes elements based on a weighted proportion of available space.
Public propertyStatic memberSizeToCellsGets a DataGridLength structure that represents the cell-based automatic sizing mode.
Public propertyStatic memberSizeToHeaderGets a DataGridLength structure that represents the header-based automatic sizing mode.
Public propertyUnitTypeGets the type that is used to determine how the size of the element is calculated.
Public propertyValueGets the absolute value of the DataGridLength in pixels.
Top

  NameDescription
Public methodEquals(DataGridLength)Determines whether the specified DataGridLength is equal to the current DataGridLength.
Public methodEquals(Object)Determines whether the specified object is equal to the current DataGridLength. (Overrides ValueType.Equals(Object).)
Public methodGetHashCodeGets a hash code for the DataGridLength. (Overrides ValueType.GetHashCode().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Overrides ValueType.ToString().)
Top

  NameDescription
Public operatorStatic memberEqualityCompares two DataGridLength structures for equality.
Public operatorStatic memberImplicit(Double to DataGridLength)Converts a Double to an instance of the DataGridLength class.
Public operatorStatic memberInequalityCompares two DataGridLength structures to determine whether they are not equal.
Top

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), 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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft