[]
        
(Showing Draft Content)

GrapeCity.Drawing.IDrawingContext.DrawLine

DrawLine Method

DrawLine(Pen, Point, Point)

Draws a line between the specified points using the specified Pen.

Declaration
void DrawLine(Pen pen, Point point1, Point point2)
Sub DrawLine(pen As Pen, point1 As Point, point2 As Point)
Parameters
Type Name Description
Pen pen

The pen with which to stroke the line.

Point point1

The start point of the line.

Point point2

The end point of the line.

DrawLine(Pen, double, double, double, double)

Draws a line between the specified points using the specified BorderLine.

Declaration
void DrawLine(Pen pen, double x, double y, double x2, double y2)
Sub DrawLine(pen As Pen, x As Double, y As Double, x2 As Double, y2 As Double)
Parameters
Type Name Description
Pen pen
double x

The x-coordinate of the start point of the line.

double y

The y-coordinate of the start point of the line.

double x2

The x-coordinate of the end point of the line.

double y2

The y-coordinate of the end point of the line.