BorderRadius 構造体
矩形の四隅に適用する角丸半径を表す不変値です。
名前空間: FloatSoda.Geometrics
アセンブリ: FloatSoda.dll
public readonly record struct BorderRadius : IEquatable<BorderRadius>実装するインターフェイス
Section titled “実装するインターフェイス”継承したメンバー
Section titled “継承したメンバー”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
コンストラクター
Section titled “コンストラクター”BorderRadius(Radius, Radius, Radius, Radius)
Section titled “BorderRadius(Radius, Radius, Radius, Radius)”矩形の四隅に適用する角丸半径を表す不変値です。
public BorderRadius(Radius TopLeft = default, Radius TopRight = default, Radius BottomRight = default, Radius BottomLeft = default)パラメーター
Section titled “パラメーター”TopLeft Radius
左上隅の水平半径と垂直半径。既定値は0です。
TopRight Radius
右上隅の水平半径と垂直半径。既定値は0です。
BottomRight Radius
右下隅の水平半径と垂直半径。既定値は0です。
BottomLeft Radius
左下隅の水平半径と垂直半径。既定値は0です。
すべての半径が0の角丸値を取得します。
public static readonly BorderRadius Zeroフィールドの値
Section titled “フィールドの値”BottomLeft
Section titled “BottomLeft”左下隅の水平半径と垂直半径。既定値は0です。
public Radius BottomLeft { get; init; }プロパティの値
Section titled “プロパティの値”BottomRight
Section titled “BottomRight”右下隅の水平半径と垂直半径。既定値は0です。
public Radius BottomRight { get; init; }プロパティの値
Section titled “プロパティの値”TopLeft
Section titled “TopLeft”左上隅の水平半径と垂直半径。既定値は0です。
public Radius TopLeft { get; init; }プロパティの値
Section titled “プロパティの値”TopRight
Section titled “TopRight”右上隅の水平半径と垂直半径。既定値は0です。
public Radius TopRight { get; init; }プロパティの値
Section titled “プロパティの値”All(Radius)
Section titled “All(Radius)”四隅へ同じ角丸半径を設定した値を作成します。
public static BorderRadius All(Radius radius)パラメーター
Section titled “パラメーター”radius Radius
四隅へ適用する半径。
四隅が同じ半径の新しい値。
Circular(float)
Section titled “Circular(float)”四隅へ同じ円形半径を設定した値を作成します。
public static BorderRadius Circular(float radius)パラメーター
Section titled “パラメーター”radius float
水平および垂直方向へ適用する論理ピクセル単位の半径。
四隅が同じ円形半径の新しい値。
ToRoundRect(SKRect)
Section titled “ToRoundRect(SKRect)”指定された矩形へこの角丸半径を適用した描画用矩形を作成します。
public SKRoundRect ToRoundRect(SKRect rect)パラメーター
Section titled “パラメーター”rect SKRect
角丸を適用する矩形。半径と同じ座標単位を使用します。
各隅に対応する半径を持つ新しい描画用矩形。