GridLength 構造体

定義

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

[System.Diagnostics.DebuggerDisplay("{Value}.{GridUnitType}")]
[Xamarin.Forms.TypeConverter(typeof(Xamarin.Forms.GridLengthTypeConverter))]
public struct GridLength
type GridLength = struct
継承
GridLength
属性

注釈

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

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

コンストラクター

GridLength(Double)

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

GridLength(Double, GridUnitType)

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

プロパティ

Auto

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

GridUnitType

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

IsAbsolute

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

IsAuto

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

IsStar

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

Star

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

Value

GridLength の値を取得します。

メソッド

Equals(Object)

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

GetHashCode()

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

ToString()

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

演算子

Implicit(Double to GridLength)

double 値を GridLength の型 GridUnitType.Absolute に変換するキャスト演算子

適用対象