Class
RadArcSegment

Defines an arc segment for a path figure, allowing you to draw elliptical arcs within a bounding box. The arc is specified by its center point, size, start angle, and sweep angle, all relative to the containing geometry. This segment enables the creation of circular or elliptical arcs with customizable orientation and sweep direction, making it suitable for advanced vector graphics scenarios such as pie charts, gauges, or custom shapes.

Definition

Constructors

RadArcSegment()

Initializes a new instance of the arc segment.

Declaration

cs-api-definition
public RadArcSegment()

RadArcSegment(Point, Size, double, double)

Initializes a new instance of the arc segment.

Declaration

cs-api-definition
public RadArcSegment(Point center, Size size, double startAngle, double sweepAngle)

Parameters

center

Point

Specifies the center point of the arc segment. The point coordinates are relative to the containing geometry's bounding box, where (0, 0) is the bottom-left corner and (1, 1) is the top-right corner.

size

Size

Specifies the size of the arc segment. The width and height are values between 0 and 1, relative to the containing geometry's bounding box.

startAngle

double

Specifies the start angle of the arc segment in the cartesian coordinate system, where 0 points to the right and 90 points up. This value is measured in degrees, where 360 represents a full circle.

sweepAngle

double

Specifies the sweep angle of the arc segment with positive values indicating a counter-clockwise direction. This value is measured in degrees, where 360 represents a full circle.

Properties

Center

Gets or sets the center point of the arc segment. The point coordinates are relative to the containing geometry's bounding box, where (0, 0) is the bottom-left corner and (1, 1) is the top-right corner.

Declaration

cs-api-definition
public Point Center { get; set; }

Property Value

Point

Size

Gets or sets the size of the arc segment. The width and height are values between 0 and 1, relative to the containing geometry's bounding box.

Declaration

cs-api-definition
[TypeConverter(typeof(SizeTypeConverter))]
public Size Size { get; set; }

Property Value

Size

StartAngle

Gets or sets the start angle of the arc segment in the cartesian coordinate system, where 0 points to the right and 90 points up. This value is measured in degrees, where 360 represents a full circle.

Declaration

cs-api-definition
public double StartAngle { get; set; }

Property Value

double

SweepAngle

Gets or sets the sweep angle of the arc segment with positive values indicating a counter-clockwise direction. This value is measured in degrees, where 360 represents a full circle.

Declaration

cs-api-definition
public double SweepAngle { get; set; }

Property Value

double