EdgeInsets 構造体
矩形の各辺から内側へ確保する余白を表す不変値です。
名前空間: FloatSoda.Geometrics
アセンブリ: FloatSoda.dll
public readonly record struct EdgeInsets : IEquatable<EdgeInsets>実装するインターフェイス
Section titled “実装するインターフェイス”継承したメンバー
Section titled “継承したメンバー”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
コンストラクター
Section titled “コンストラクター”EdgeInsets(double, double, double, double)
Section titled “EdgeInsets(double, double, double, double)”矩形の各辺から内側へ確保する余白を表す不変値です。
public EdgeInsets(double Left = 0, double Top = 0, double Right = 0, double Bottom = 0)パラメーター
Section titled “パラメーター”Left double
左辺の余白。単位は論理ピクセルで、既定値は0です。
Top double
上辺の余白。単位は論理ピクセルで、既定値は0です。
Right double
右辺の余白。単位は論理ピクセルで、既定値は0です。
Bottom double
下辺の余白。単位は論理ピクセルで、既定値は0です。
Offset
すべての辺の余白が0の値を取得します。
public static readonly EdgeInsets Zeroフィールドの値
Section titled “フィールドの値”Bottom
Section titled “Bottom”下辺の余白。単位は論理ピクセルで、既定値は0です。
public double Bottom { get; init; }プロパティの値
Section titled “プロパティの値”BottomLeft
Section titled “BottomLeft”左辺と下辺の余白をオフセットとして取得します。
public Offset BottomLeft { get; }プロパティの値
Section titled “プロパティの値”Offset
BottomRight
Section titled “BottomRight”右辺と下辺の余白をオフセットとして取得します。
public Offset BottomRight { get; }プロパティの値
Section titled “プロパティの値”Offset
Flipped
Section titled “Flipped”左辺と右辺、および上辺と下辺を入れ替えた余白を取得します。
public EdgeInsets Flipped { get; }プロパティの値
Section titled “プロパティの値”左辺の余白。単位は論理ピクセルで、既定値は0です。
public double Left { get; init; }プロパティの値
Section titled “プロパティの値”右辺の余白。単位は論理ピクセルで、既定値は0です。
public double Right { get; init; }プロパティの値
Section titled “プロパティの値”上辺の余白。単位は論理ピクセルで、既定値は0です。
public double Top { get; init; }プロパティの値
Section titled “プロパティの値”TopLeft
Section titled “TopLeft”左辺と上辺の余白をオフセットとして取得します。
public Offset TopLeft { get; }プロパティの値
Section titled “プロパティの値”Offset
TopRight
Section titled “TopRight”右辺と上辺の余白をオフセットとして取得します。
public Offset TopRight { get; }プロパティの値
Section titled “プロパティの値”Offset
All(double)
Section titled “All(double)”すべての辺へ同じ余白を設定した値を作成します。
public static EdgeInsets All(double value)パラメーター
Section titled “パラメーター”value double
各辺へ適用する論理ピクセル単位の余白。
すべての辺が同じ余白の新しい値。
Symmetric(double, double)
Section titled “Symmetric(double, double)”垂直方向と水平方向でそれぞれ共通の余白を設定した値を作成します。
public static EdgeInsets Symmetric(double vertical = 0, double horizontal = 0)パラメーター
Section titled “パラメーター”vertical double
上辺と下辺へ適用する論理ピクセル単位の余白。既定値は0です。
horizontal double
左辺と右辺へ適用する論理ピクセル単位の余白。既定値は0です。
軸ごとに対称な余白を持つ新しい値。
Offset