ClassRadArcSegment
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
RadArcSegment()
Initializes a new instance of the arc segment.
Declaration
public RadArcSegment()
RadArcSegment(Point, Size, double, double)
Initializes a new instance of the arc segment.
Declaration
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
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
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
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
[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.
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.