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

Defines a geometric path figure consisting of a starting point and a sequence of connected path segments. The RadPathFigure is used to construct complex vector shapes by specifying a relative start point and a collection of segments such as lines, curves, or arcs. The coordinates for the start point are normalized relative to the bounding box of the containing geometry, where (0, 0) represents the bottom-left and (1, 1) the top-right corner.

Definition

Constructors

Initializes a new instance of the path figure.

C#
public RadPathFigure()

Properties

Gets the collection of path segments describing the path figure.

C#
public ObservableItemCollection<RadPathSegment> Segments { get; }

Gets or sets the start point of the path figure. 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.

csharp
var figure = new RadPathFigure
{
    StartPoint = new Point(0.2, 0.3)
};
figure.Segments.Add(new RadLineSegment { Point = new Point(0.8, 0.3) });
C#
public Point StartPoint { get; set; }