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

Defines a line segment within a path figure, specifying its end point relative to the bounding box of the containing geometry. The segment extends from the current position to the specified end point, where coordinates are normalized such that (0, 0) represents the bottom-left and (1, 1) the top-right corner of the bounding box.

Definition

Constructors

Initializes a new instance of the line segment.

C#
public RadLineSegment()

Initializes a new instance of the line segment.

C#
public RadLineSegment(Point point)
Parameters:pointPoint

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

Properties

Point

Point

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

csharp
// Set the end point of the line segment to (0.5, 0.5) relative to the bounding box
var segment = new RadLineSegment();
segment.Point = new Point(0.5, 0.5);
C#
public Point Point { get; set; }