Table of Contents

Method DrawLine

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

DrawLine(int, int, int, int)

When implemented by a class, draws a line from the given start position up to, but not including, the specified end point.

void DrawLine(int x1, int y1, int x2, int y2)

Parameters

x1 int

X-coordinate of the line's start point.

y1 int

Y-coordinate of the line's start point.

x2 int

X-coordinate of the line's ending point.

y2 int

Y-coordinate of the line's ending point.

DrawLine(int, int, int, int, Color, int, DashStyle)

When implemented by a class, draws a line from the given start position up to, but not including, the specified end point.

void DrawLine(int x1, int y1, int x2, int y2, Color color, int width, DashStyle penStyle)

Parameters

x1 int

X-coordinate of the line's start point.

y1 int

Y-coordinate of the line's start point.

x2 int

X-coordinate of the line's ending point.

y2 int

Y-coordinate of the line's ending point.

color Color

Specifies color of the Pen object to draw line.

width int

Specifies width of the Pen object to draw line.

penStyle DashStyle

Specifies style of the Pen object to draw line.