Class
LineSegment

Represents line segment of a shape.

Definition

Namespace:Telerik.Reporting.Drawing.Shapes

Assembly:Telerik.Reporting.dll

Syntax:

cs-api-definition
public class LineSegment : IShapeSegment

Inheritance: objectLineSegment

Implements: IShapeSegment

Constructors

LineSegment(PointF, PointF)

Initializes a new instance of the LineSegment class with the specified points.

Declaration

cs-api-definition
public LineSegment(PointF point1, PointF point2)

Parameters

point1

PointF

The start point of the line segment.

point2

PointF

The end point of the line segment.

Properties

EndPoint

Gets the end point of this segment.

Declaration

cs-api-definition
public PointF EndPoint { get; set; }

Property Value

PointF

The end point of the segment.

Length

Gets the length of the line.

Declaration

cs-api-definition
public float Length { get; }

Property Value

float

A float value representing the lenght of the line segment.

Points

Gets the points of this segment.

Declaration

cs-api-definition
public PointF[] Points { get; }

Property Value

PointF[]

A point array representing the points of the segment.

Implements IShapeSegment.Points

StartPoint

Gets the start point of this segment.

Declaration

cs-api-definition
public PointF StartPoint { get; set; }

Property Value

PointF

The start point of the segment.