次の方法で共有


GridLength 構造体

定義

グリッドの ColumnDefinition と RowDefinition のサイズ (幅/高さ) を定義するために使用します。

public value class GridLength
public readonly struct GridLength
[System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.GridLength+GridLengthTypeConverter))]
public readonly struct GridLength
type GridLength = struct
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.GridLength+GridLengthTypeConverter))>]
type GridLength = struct
Public Structure GridLength
継承
GridLength
属性

注釈

GridUnitType.Absolute 型の GridLength は、正確なサイズを表します。 GridUnitType.Auto 型の型は、グリッド列/行内の要素のサイズを調整するために調整されます。 GridUnitType.Star 型の GridLength は、使用可能なサイズを比例バケットで分割するために使用されます。

この valuetype は読み取り時です。

コンストラクター

GridLength(Double)

新しい Absolute GridLength を初期化します。

GridLength(Double, GridUnitType)

新しい GridLength を初期化します。

フィールド

Auto

GridUnitType.Auto の GridLength を再利用する準備ができました。

Star

値 1 で GridUnitType.Star の GridLength を再利用する準備ができました。

プロパティ

GridUnitType

GridLength の GridUnitType を取得または設定します

IsAbsolute

GridLength の GridUnitType が GridUnitType.Absolute であるかどうかを取得します。

IsAuto

GridLength の GridUnitType が GridUnitType.Auto であるかどうかを取得します。

IsStar

GridLength の GridUnitType が GridUnitType.Star であるかどうかを示す値を取得します。

Value

GridLength の値を取得します。

メソッド

Equals(Object)

この GridLength ともう 1 つが等しいかどうかをテストします。

GetHashCode()

コレクション内のこのオブジェクトの効率的な保存に使用される値を返します。

ToString()

"." で区切って、値とグリッドの単位の種類を返します。

演算子

Equality(GridLength, GridLength)

グリッドの ColumnDefinition と RowDefinition のサイズ (幅/高さ) を定義するために使用します。

Implicit(Double to GridLength)

グリッドの ColumnDefinition と RowDefinition のサイズ (幅/高さ) を定義するために使用します。

Inequality(GridLength, GridLength)

グリッドの ColumnDefinition と RowDefinition のサイズ (幅/高さ) を定義するために使用します。

適用対象