GraphicsExtensionsDrawLine Method

Draws a line connecting the two points specified by the coordinate pairs.

Definition

Namespace: SMath.Drawing
Assembly: SMath.Drawing (in SMath.Drawing.dll) Version: 1.4.0.0
C#
public static void DrawLine(
	this IGraphics g,
	ColorPen pen,
	PointF pnt1,
	PointF pnt2
)

Parameters

g  IGraphics
pen  ColorPen
ColorPen that determines the color, width, and style of the line.
pnt1  PointF
The first point.
pnt2  PointF
The second point.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IGraphics. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also