[]
        
(Showing Draft Content)

GrapeCity.Documents.Drawing.CornerRadius

Struct CornerRadius

Namespace
GrapeCity.Documents.Drawing
Assembly
GcDocs.Imaging.dll

Represents the corners' radii of a rounded rectangle.

public struct CornerRadius
Inherited Members
System.ValueType.Equals(object)
System.ValueType.GetHashCode()
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()

Constructors

CornerRadius(float, float, float, float, float, float, float, float)

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)

Parameters

topLeftX float

The value of TopLeftX property.

topLeftY float

The value of TopLeftY property.

topRightX float

The value of TopRightX property.

topRightY float

The value of TopRightY property.

bottomLeftX float

The value of BottomLeftX property.

bottomLeftY float

The value of BottomLeftY property.

bottomRightX float

The value of BottomRightX property.

bottomRightY float

The value of BottomRightY property.

CornerRadius(float, float)

Initializes a new instance of the CornerRadius structure.

public CornerRadius(float allX, float allY)

Parameters

allX float

The value for all x radii.

allY float

The value for all y radii.

CornerRadius(float)

Initializes a new instance of the CornerRadius structure.

public CornerRadius(float all)

Parameters

all float

The value for all corners.

Fields

Default

Gets a CornerRadius structure defining a rectangle with square corners.

public static readonly CornerRadius Default

Field Value

CornerRadius

Properties

All

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; }

Property Value

float?

AllX

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; }

Property Value

float?

AllY

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; }

Property Value

float?

BottomLeftX

Gets or sets the x-radius of the bottom left corner.

public float BottomLeftX { get; set; }

Property Value

float

BottomLeftY

Gets or sets the y-radius of the bottom left corner.

public float BottomLeftY { get; set; }

Property Value

float

BottomRightX

Gets or sets the x-radius of the bottom right corner.

public float BottomRightX { get; set; }

Property Value

float

BottomRightY

Gets or sets the y-radius of the bottom right corner.

public float BottomRightY { get; set; }

Property Value

float

RoundBottomLeft

Gets a value indicating whether bottom-left corner is round, i.e. BottomLeftX and BottomLeftY greater than 0.

public bool RoundBottomLeft { get; }

Property Value

bool

RoundBottomRight

Gets a value indicating whether bottom-right corner is round, i.e. BottomRightX and BottomRightY greater than 0.

public bool RoundBottomRight { get; }

Property Value

bool

RoundTopLeft

Gets a value indicating whether top-left corner is round, i.e. TopLeftX and TopLeftY greater than 0.

public bool RoundTopLeft { get; }

Property Value

bool

RoundTopRight

Gets a value indicating whether top-right corner is round, i.e. TopRightX and TopRightY greater than 0.

public bool RoundTopRight { get; }

Property Value

bool

TopLeftX

Gets or sets the x-radius of the upper left corner.

public float TopLeftX { get; set; }

Property Value

float

TopLeftY

Gets or sets the y-radius of the upper left corner.

public float TopLeftY { get; set; }

Property Value

float

TopRightX

Gets or sets the x-radius of the upper right corner.

public float TopRightX { get; set; }

Property Value

float

TopRightY

Gets or sets the y-radius of the upper right corner.

public float TopRightY { get; set; }

Property Value

float

Methods

ToString()

public override string ToString()

Returns

string