New to Telerik UI for WinFormsStart a free 30-day trial

RadLine

Struct

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

Definition

Namespace:Telerik.Charting

Assembly:Telerik.WinControls.dll

Syntax:

C#
public struct RadLine

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

Constructors

Initializes a new instance of the RadLine struct.

C#
public RadLine(double x1, double x2, double y1, double y2)
Parameters:x1double

The X-coordinate of the line start point.

x2double

The X-coordinate of the line end point.

y1double

The Y-coordinate of the line start point.

y2double

The Y-coordinate of the line end point.

Initializes a new instance of the RadLine struct.

C#
public RadLine(RadPoint point1, RadPoint point2)
Parameters:point1RadPoint

The starting point of the line.

point2RadPoint

The ending point of the line.

Fields

The X-coordinate of the line start point.

C#
public double X1

The X-coordinate of the line end point.

C#
public double X2

The Y-coordinate of the line start point.

C#
public double Y1

The Y-coordinate of the line end point.

C#
public double Y2

Methods

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

C#
public static RadLine Round(RadLine line)
Parameters:lineRadLine

The line to round.

Returns:

RadLine

A new RadLine with rounded coordinate values.