Struct
RadLine

Represents a line segment defined by two points, providing geometric operations for charting applications.

Definition

Namespace:Telerik.Charting

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public struct RadLine

Inherited Members ValueType.Equals(object)ValueType.GetHashCode()ValueType.ToString()

Constructors

RadLine(RadPoint, RadPoint)

Initializes a new instance of the RadLine struct.

Declaration

cs-api-definition
public RadLine(RadPoint point1, RadPoint point2)

Parameters

point1

RadPoint

The starting point of the line.

point2

RadPoint

The ending point of the line.

RadLine(double, double, double, double)

Initializes a new instance of the RadLine struct.

Declaration

cs-api-definition
public RadLine(double x1, double x2, double y1, double y2)

Parameters

x1

double

The X-coordinate of the line start point.

x2

double

The X-coordinate of the line end point.

y1

double

The Y-coordinate of the line start point.

y2

double

The Y-coordinate of the line end point.

Fields

X1

The X-coordinate of the line start point.

Declaration

cs-api-definition
public double X1

Field Value

double

X2

The X-coordinate of the line end point.

Declaration

cs-api-definition
public double X2

Field Value

double

Y1

The Y-coordinate of the line start point.

Declaration

cs-api-definition
public double Y1

Field Value

double

Y2

The Y-coordinate of the line end point.

Declaration

cs-api-definition
public double Y2

Field Value

double

Methods

Round(RadLine)

Rounds the line's coordinate values to the nearest whole numbers.

Declaration

cs-api-definition
public static RadLine Round(RadLine line)

Parameters

line

RadLine

The line to round.

Returns

RadLine

A new RadLine with rounded coordinate values.