DataGridLength DataGridLength DataGridLength DataGridLength Struct

Definition

Represents the lengths of elements within the DataGrid control.

public value class DataGridLength : IEquatable<System::Windows::Controls::DataGridLength>
[System.ComponentModel.TypeConverter(typeof(System.Windows.Controls.DataGridLengthConverter))]
public struct DataGridLength : IEquatable<System.Windows.Controls.DataGridLength>
type DataGridLength = struct
Public Structure DataGridLength
Implements IEquatable(Of DataGridLength)
Inheritance
DataGridLengthDataGridLengthDataGridLengthDataGridLength
Attributes
Implements

Constructors

DataGridLength(Double) DataGridLength(Double) DataGridLength(Double) DataGridLength(Double)

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

DataGridLength(Double, DataGridLengthUnitType) DataGridLength(Double, DataGridLengthUnitType) DataGridLength(Double, DataGridLengthUnitType) DataGridLength(Double, DataGridLengthUnitType)

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

DataGridLength(Double, DataGridLengthUnitType, Double, Double) DataGridLength(Double, DataGridLengthUnitType, Double, Double) DataGridLength(Double, DataGridLengthUnitType, Double, Double) DataGridLength(Double, DataGridLengthUnitType, Double, Double)

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

Properties

Auto Auto Auto Auto

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

DesiredValue DesiredValue DesiredValue DesiredValue

Gets the calculated pixel value needed for the element.

DisplayValue DisplayValue DisplayValue DisplayValue

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

IsAbsolute IsAbsolute IsAbsolute IsAbsolute

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

IsAuto IsAuto IsAuto IsAuto

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

IsSizeToCells IsSizeToCells IsSizeToCells IsSizeToCells

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

IsSizeToHeader IsSizeToHeader IsSizeToHeader IsSizeToHeader

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

IsStar IsStar IsStar IsStar

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

SizeToCells SizeToCells SizeToCells SizeToCells

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

SizeToHeader SizeToHeader SizeToHeader SizeToHeader

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

UnitType UnitType UnitType UnitType

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

Value Value Value Value

Gets the absolute value of the DataGridLength in pixels.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

Equals(DataGridLength) Equals(DataGridLength) Equals(DataGridLength) Equals(DataGridLength)

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

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Gets a hash code for the DataGridLength.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

Operators

Equality(DataGridLength, DataGridLength) Equality(DataGridLength, DataGridLength) Equality(DataGridLength, DataGridLength) Equality(DataGridLength, DataGridLength)

Compares two DataGridLength structures for equality.

Implicit(Double to DataGridLength) Implicit(Double to DataGridLength) Implicit(Double to DataGridLength) Implicit(Double to DataGridLength)

Converts a Double to an instance of the DataGridLength class.

Inequality(DataGridLength, DataGridLength) Inequality(DataGridLength, DataGridLength) Inequality(DataGridLength, DataGridLength) Inequality(DataGridLength, DataGridLength)

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

Applies to