[]
Represents the corners' radii of a rounded rectangle.
public struct CornerRadius
Initializes a new instance of the CornerRadius structure.
public CornerRadius(float topLeftX, float topLeftY, float topRightX, float topRightY, float bottomLeftX, float bottomLeftY, float bottomRightX, float bottomRightY)
topLeftX
floatThe value of TopLeftX property.
topLeftY
floatThe value of TopLeftY property.
topRightX
floatThe value of TopRightX property.
topRightY
floatThe value of TopRightY property.
bottomLeftX
floatThe value of BottomLeftX property.
bottomLeftY
floatThe value of BottomLeftY property.
bottomRightX
floatThe value of BottomRightX property.
bottomRightY
floatThe value of BottomRightY property.
Initializes a new instance of the CornerRadius structure.
public CornerRadius(float allX, float allY)
allX
floatThe value for all x radii.
allY
floatThe value for all y radii.
Initializes a new instance of the CornerRadius structure.
public CornerRadius(float all)
all
floatThe value for all corners.
Gets a CornerRadius structure defining a rectangle with square corners.
public static readonly CornerRadius Default
Gets or sets a single radius value for all corners. Getting this property when different radii have different values returns null. Setting this property to null does not have any effect.
public float? All { get; set; }
Gets or sets a single X radius value for all corners. Getting this property when different X radii have different values returns null. Setting this property to null does not have any effect.
public float? AllX { get; set; }
Gets or sets a single Y radius value for all corners. Getting this property when different Y radii have different values returns null. Setting this property to null does not have any effect.
public float? AllY { get; set; }
Gets or sets the x-radius of the bottom left corner.
public float BottomLeftX { get; set; }
Gets or sets the y-radius of the bottom left corner.
public float BottomLeftY { get; set; }
Gets or sets the x-radius of the bottom right corner.
public float BottomRightX { get; set; }
Gets or sets the y-radius of the bottom right corner.
public float BottomRightY { get; set; }
Gets a value indicating whether bottom-left corner is round, i.e. BottomLeftX and BottomLeftY greater than 0.
public bool RoundBottomLeft { get; }
Gets a value indicating whether bottom-right corner is round, i.e. BottomRightX and BottomRightY greater than 0.
public bool RoundBottomRight { get; }
Gets a value indicating whether top-left corner is round, i.e. TopLeftX and TopLeftY greater than 0.
public bool RoundTopLeft { get; }
Gets a value indicating whether top-right corner is round, i.e. TopRightX and TopRightY greater than 0.
public bool RoundTopRight { get; }
Gets or sets the x-radius of the upper left corner.
public float TopLeftX { get; set; }
Gets or sets the y-radius of the upper left corner.
public float TopLeftY { get; set; }
Gets or sets the x-radius of the upper right corner.
public float TopRightX { get; set; }
Gets or sets the y-radius of the upper right corner.
public float TopRightY { get; set; }
public override string ToString()