Table of Contents

Method DrawLine

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

DrawLine(Pen, PointD, PointD)

Draws a line connecting two points.

public abstract void DrawLine(Pen pen, PointD a, PointD b)

Parameters

pen Pen

Pen that determines the color, width, and style of the line.

a PointD

PointD structure that represents the first point to connect.

b PointD

PointD structure that represents the second point to connect.

Exceptions

ArgumentNullException

pen is null.

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

Draws a line connecting two points.

public void DrawLine(Pen pen, double x1, double y1, double x2, double y2)

Parameters

pen Pen

Pen that determines the color, width, and style of the line.

x1 double

X coordinate of the first point.

y1 double

Y coordinate of the first point.

x2 double

X coordinate of the second point.

y2 double

Y coordinate of the second point.