New to Telerik UI for .NET MAUIStart a free 30-day trial

Represents an elliptical arc segment within a path figure, allowing precise control over its geometry. This segment is defined by its end point, radii along the X and Y axes, rotation angle, sweep direction, and arc size. Use RadArcToSegment to create curved path figures for advanced vector graphics scenarios.

Definition

Constructors

Initializes a new instance of the arc segment.

C#
public RadArcToSegment()

Initializes a new instance of the arc segment.

C#
public RadArcToSegment(Point endPoint, Size radius, double rotationAngle, SweepDirection sweepDirection, bool isLargeArc)
Parameters:endPointPoint

Specifies the end 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.

radiusSize

Specifies the radius of the arc segment, where Width corresponds to the radius along the X axis and Height corresponds to the radius along the Y axis.

rotationAngledouble

Specifies the rotation 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.

sweepDirectionSweepDirection

Specifies the sweep direction of the arc segment.

isLargeArcbool

Specifies whether to draw the large arc segment.

Example:
csharp
var arcSegment = new RadArcToSegment(
    new Point(1, 0.5), 
    new Size(0.5, 0.3), 
    45, 
    SweepDirection.Clockwise, 
    false);

Properties

Gets or sets the end 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.

C#
public Point EndPoint { get; set; }
Example:
csharp
var arcSegment = new RadArcToSegment();
arcSegment.EndPoint = new Point(0.8, 0.6);

Gets or sets a value indicating whether to draw the large arc segment.

C#
public bool IsLargeArc { get; set; }
Example:
csharp
var arcSegment = new RadArcToSegment();
arcSegment.IsLargeArc = true;

Radius

Size

Gets or sets the radius of the arc segment, where Width corresponds to the radius along the X axis and Height corresponds to the radius along the Y axis.

C#
public Size Radius { get; set; }
Example:
csharp
var arcSegment = new RadArcToSegment();
arcSegment.Radius = new Size(0.4, 0.25);

Gets or sets the rotation 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.

C#
public double RotationAngle { get; set; }
Example:
csharp
var arcSegment = new RadArcToSegment();
arcSegment.RotationAngle = 45;

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

C#
public SweepDirection SweepDirection { get; set; }
Example:
csharp
var arcSegment = new RadArcToSegment();
arcSegment.SweepDirection = SweepDirection.Clockwise;