DrawLine Method (IDrawingContext)
Draws a line between the specified points using the specified Pen.
'Declaration
Sub DrawLine( _
ByVal As Pen, _
ByVal As Point, _
ByVal As Point _
)
'Usage
Dim instance As IDrawingContext
Dim pen As Pen
Dim point1 As Point
Dim point2 As Point
instance.DrawLine(pen, point1, point2)
Parameters
- pen
- The pen with which to stroke the line.
- point1
- The start point of the line.
- point2
- The end point of the line.