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

Represents a conic segment within a path figure, defined by a control point, an end point, and a weight. The control and end points are specified relative to the bounding box of the containing geometry, where (0, 0) is the bottom-left corner and (1, 1) is the top-right corner. The Weight property determines the influence of the control point, allowing for the representation of circular arcs and other conic sections.

Definition

Constructors

Initializes a new instance of the conic segment.

C#
public RadConicSegment()

Initializes a new instance of the conic segment.

C#
public RadConicSegment(Point controlPoint, Point endPoint, double weight)
Parameters:controlPointPoint

Specifies the control point of the conic 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.

endPointPoint

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

weightdouble

Specifies the weight of the conic segment.

Example:
csharp
var conicSegment = new RadConicSegment(
    controlPoint: new Point(0.5, 0.2),
    endPoint: new Point(1.0, 0.5),
    weight: 1.5);

Properties

Gets or sets the control point of the conic 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 ControlPoint { get; set; }
Example:
csharp
var conicSegment = new RadConicSegment();
conicSegment.ControlPoint = new Point(0.5, 0.2);
conicSegment.EndPoint = new Point(1.0, 0.5);
conicSegment.Weight = 1.5;

Gets or sets the end point of the conic 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 conicSegment = new RadConicSegment();
conicSegment.ControlPoint = new Point(0.5, 0.2);
conicSegment.EndPoint = new Point(1.0, 0.5);
conicSegment.Weight = 1.5;

Gets or sets the weight of the conic segment.

C#
public double Weight { get; set; }
Example:
csharp
var conicSegment = new RadConicSegment();
conicSegment.ControlPoint = new Point(0.5, 0.2);
conicSegment.EndPoint = new Point(1.0, 0.5);
conicSegment.Weight = 1.5;