ערוך

שתף באמצעות


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>
[<System.ComponentModel.TypeConverter(typeof(System.Windows.Controls.DataGridLengthConverter))>]
type DataGridLength = struct
Public Structure DataGridLength
Implements IEquatable(Of DataGridLength)
Inheritance
DataGridLength
Attributes
Implements

Constructors

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.

Properties

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.

Methods

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.

GetHashCode()

Gets a hash code for the DataGridLength.

ToString()

Returns a string that represents the current object.

Operators

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.

Applies to