DataGridLength DataGridLength DataGridLength DataGridLength Struct

定義

表示 DataGrid 控制項內項目的長度。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)
繼承
DataGridLengthDataGridLengthDataGridLengthDataGridLength
屬性
實作

建構函式

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

使用絕對值 (依像素),將 DataGridLength 類別的新執行個體初始化。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)

使用指定的值和單位初始化 DataGridLength 類別的新執行個體。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)

使用指定的值、單位、需要的值和顯示值,初始化 DataGridLength 類別的新執行個體。Initializes a new instance of the DataGridLength class with the specified value, unit, desired value, and display value.

屬性

Auto Auto Auto Auto

取得表示標準自動調整大小模式的 DataGridLength 結構。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

取得表示儲存格架構自動調整大小模式的 DataGridLength 結構。Gets a DataGridLength structure that represents the cell-based automatic sizing mode.

SizeToHeader SizeToHeader SizeToHeader SizeToHeader

取得表示行首架構自動調整大小模式的 DataGridLength 結構。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

取得 DataGridLength 的絕對值,以像素為單位。Gets the absolute value of the DataGridLength in pixels.

方法

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

判斷指定的物件是否等於目前的 DataGridLengthDetermines whether the specified object is equal to the current DataGridLength.

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

判斷指定的 DataGridLength 是否等於目前的 DataGridLengthDetermines whether the specified DataGridLength is equal to the current DataGridLength.

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

取得 DataGridLength 的雜湊碼。Gets a hash code for the DataGridLength.

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

傳回代表目前物件的字串。Returns a string that represents the current object.

運算子

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

比較兩個 DataGridLength 結構是否相等。Compares two DataGridLength structures for equality.

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

Double 轉換為 DataGridLength 類別的執行個體。Converts a Double to an instance of the DataGridLength class.

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

比較兩個 DataGridLength 結構,判斷它們是否不相等。Compares two DataGridLength structures to determine whether they are not equal.

適用於