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
Namespace:Telerik.Maui.Controls.Paths
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class RadArcSegment : RadPathSegment, INotifyPropertyChanged
Inheritance: objectNotifyPropertyChangedBaseRadPathSegmentRadArcSegment
Implements:
Inherited Members
Constructors
Initializes a new instance of the arc segment.
public RadArcSegment()
Initializes a new instance of the arc segment.
public RadArcSegment(Point center, Size size, double startAngle, double sweepAngle)
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.
sizeSizeSpecifies the size of the arc segment. The width and height are values between 0 and 1, relative to the containing geometry's bounding box.
startAngledoubleSpecifies 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.
sweepAngledoubleSpecifies 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
Point
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.
public Point Center { get; set; }
Size
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.
[TypeConverter(typeof(SizeTypeConverter))]
public Size Size { get; set; }
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.
public double StartAngle { get; set; }
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.
public double SweepAngle { get; set; }