Spread WinForms 15
GrapeCity.Spreadsheet Assembly / GrapeCity.Drawing Namespace / IDrawingContext Interface / DrawLine Method
The pen with which to stroke the line.
The start point of the line.
The end point of the line.


In This Topic
DrawLine Method (IDrawingContext)
In This Topic
Draws a line between the specified points using the specified Pen.
Syntax
'Declaration
 
Sub DrawLine( _
   ByVal pen As Pen, _
   ByVal point1 As Point, _
   ByVal point2 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.
See Also