GridLength 結構

定義

代表明確支援 Star 單位類型的項目長度。

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

備註

此結構代表 Windows 執行階段 (WinRT) GridLength 結構的 .NET 投影。 如需詳細資訊,請參閱 UWP API 參考中的 GridLength

建構函式

GridLength(Double)

使用指定的絕對值 (以像素為單位),初始化 GridLength 結構的新執行個體。

GridLength(Double, GridUnitType)

初始化 GridLength 結構的新執行個體,並指定要包含何種值。

屬性

Auto

取得 GridLength 的執行個體,這個執行個體所含值的大小是由內容物件的大小屬性決定。

GridUnitType

取得 GridUnitType 的相關 GridLength

IsAbsolute

取得值,這個值指出 GridLength 是否包含以像素表示的值。

IsAuto

取得值,這個值表示 GridLength 所含值的大小是否由內容物件的大小屬性決定。

IsStar

取得值,這個值表示 GridLength 是否包含以可用空間的加權比例表示的值。

Value

取得 Double,它表示 GridLength 的值。

方法

Equals(GridLength)

判斷指定的 GridLength 是否等於目前的 GridLength

Equals(Object)

判斷指定的物件和目前的 GridLength 執行個體是否相等。

GetHashCode()

取得 GridLength 的雜湊程式碼。

ToString()

傳回 StringGridLength 表示。

運算子

Equality(GridLength, GridLength)

比較兩個 GridLength 結構是否相等。

Inequality(GridLength, GridLength)

比較兩個 GridLength 結構,判斷它們是否不相等。

適用於

另請參閱