GraphicsExtensionsDrawLine Method
Draws a line connecting the two points specified by the coordinate pairs.
Namespace: SMath.DrawingAssembly: SMath.Drawing (in SMath.Drawing.dll) Version: 1.4.0.0
public static void DrawLine(
this IGraphics g,
ColorPen pen,
PointF pnt1,
PointF pnt2
)
<ExtensionAttribute>
Public Shared Sub DrawLine (
g As IGraphics,
pen As ColorPen,
pnt1 As PointF,
pnt2 As PointF
)
public:
[ExtensionAttribute]
static void DrawLine(
IGraphics^ g,
ColorPen^ pen,
PointF pnt1,
PointF pnt2
)
[<ExtensionAttribute>]
static member DrawLine :
g : IGraphics *
pen : ColorPen *
pnt1 : PointF *
pnt2 : PointF -> unit
- 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.
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).