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>

NameDescription
System_CAPS_pubmethodDataGridLength(Double)

Initializes a new instance of the DataGridLength class with an absolute value in pixels.

System_CAPS_pubmethodDataGridLength(Double, DataGridLengthUnitType)

Initializes a new instance of the DataGridLength class with a specified value and unit.

System_CAPS_pubmethodDataGridLength(Double, DataGridLengthUnitType, Double, Double)

Initializes a new instance of the DataGridLength class with the specified value, unit, desired value, and display value.

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticAuto

Gets a DataGridLength structure that represents the standard automatic sizing mode.

System_CAPS_pubpropertyDesiredValue

Gets the calculated pixel value needed for the element.

System_CAPS_pubpropertyDisplayValue

Gets the pixel value allocated for the size of the element.

System_CAPS_pubpropertyIsAbsolute

Gets a value that indicates whether this instance sizes elements based on a fixed pixel value.

System_CAPS_pubpropertyIsAuto

Gets a value that indicates whether this instance automatically sizes elements based on both the content of cells and the column headers.

System_CAPS_pubpropertyIsSizeToCells

Gets a value that indicates whether this instance automatically sizes elements based on the content of the cells.

System_CAPS_pubpropertyIsSizeToHeader

Gets a value that indicates whether this instance automatically sizes elements based on the header.

System_CAPS_pubpropertyIsStar

Gets a value that indicates whether this instance automatically sizes elements based on a weighted proportion of available space.

System_CAPS_pubpropertySystem_CAPS_staticSizeToCells

Gets a DataGridLength structure that represents the cell-based automatic sizing mode.

System_CAPS_pubpropertySystem_CAPS_staticSizeToHeader

Gets a DataGridLength structure that represents the header-based automatic sizing mode.

System_CAPS_pubpropertyUnitType

Gets the type that is used to determine how the size of the element is calculated.

System_CAPS_pubpropertyValue

Gets the absolute value of the DataGridLength in pixels.

NameDescription
System_CAPS_pubmethodEquals(DataGridLength)

Determines whether the specified DataGridLength is equal to the current DataGridLength.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current DataGridLength.(Overrides ValueType.Equals(Object).)

System_CAPS_pubmethodGetHashCode()

Gets a hash code for the DataGridLength.(Overrides ValueType.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Overrides ValueType.ToString().)

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(DataGridLength, DataGridLength)

Compares two DataGridLength structures for equality.

System_CAPS_puboperatorSystem_CAPS_staticImplicit(Double to DataGridLength)

Converts a Double to an instance of the DataGridLength class.

System_CAPS_puboperatorSystem_CAPS_staticInequality(DataGridLength, DataGridLength)

Compares two DataGridLength structures to determine whether they are not equal.

.NET Framework
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.

Return to top
Show: