GridLength GridLength GridLength GridLength Struct

定義

代表明確支援 Star 單位類型的項目長度。Represents the length of elements that explicitly support Star unit types.

public value class GridLength
[System.Security.SecurityCritical]
public struct GridLength
type GridLength = struct
Public Structure GridLength
繼承
GridLengthGridLengthGridLengthGridLength
屬性

備註

這個結構代表 Windows 執行階段 (WinRT) GridLength結構的 .net 投射。This struct represents the .NET projection of the Windows Runtime (WinRT) GridLength struct. 如需詳細資訊, 請參閱 UWP API 參考中的GridLengthFor more information, see GridLength in the UWP API reference.

建構函式

GridLength(Double) GridLength(Double) GridLength(Double) GridLength(Double)

使用指定的絕對值 (以像素為單位),初始化 GridLength 結構的新執行個體。Initializes a new instance of the GridLength structure using the specified absolute value in pixels.

GridLength(Double, GridUnitType) GridLength(Double, GridUnitType) GridLength(Double, GridUnitType) GridLength(Double, GridUnitType)

初始化 GridLength 結構的新執行個體,並指定要包含何種值。Initializes a new instance of the GridLength structure and specifies what kind of value it holds.

屬性

Auto Auto Auto Auto

取得 GridLength 的執行個體,這個執行個體所含值的大小是由內容物件的大小屬性決定。Gets an instance of GridLength that holds a value whose size is determined by the size properties of the content object.

GridUnitType GridUnitType GridUnitType GridUnitType

取得 GridUnitType 的相關 GridLengthGets the associated GridUnitType for the GridLength.

IsAbsolute IsAbsolute IsAbsolute IsAbsolute

取得值,這個值指出 GridLength 是否包含以像素表示的值。Gets a value that indicates whether the GridLength holds a value that is expressed in pixels.

IsAuto IsAuto IsAuto IsAuto

取得值,這個值表示 GridLength 所含值的大小是否由內容物件的大小屬性決定。Gets a value that indicates whether the GridLength holds a value whose size is determined by the size properties of the content object.

IsStar IsStar IsStar IsStar

取得值,這個值表示 GridLength 是否包含以可用空間的加權比例表示的值。Gets a value that indicates whether the GridLength holds a value that is expressed as a weighted proportion of available space.

Value Value Value Value

取得 Double,它表示 GridLength 的值。Gets a Double that represents the value of the GridLength.

方法

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

判斷指定的物件和目前的 GridLength 執行個體是否相等。Determines whether the specified object is equal to the current GridLength instance.

Equals(GridLength) Equals(GridLength) Equals(GridLength) Equals(GridLength)

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

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

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

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

傳回 StringGridLength 表示。Returns a String representation of the GridLength.

運算子

Equality(GridLength, GridLength) Equality(GridLength, GridLength) Equality(GridLength, GridLength) Equality(GridLength, GridLength)

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

Inequality(GridLength, GridLength) Inequality(GridLength, GridLength) Inequality(GridLength, GridLength) Inequality(GridLength, GridLength)

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

適用於

另請參閱