ComponentOne PDF for .NET
DrawLine(Pen,PointF,PointF) Method

C1.C1Pdf.4 Assembly > C1.C1Pdf Namespace > C1PdfDocument Class > DrawLine Method : DrawLine(Pen,PointF,PointF) Method
System.Drawing.Pen object that determines the color, width, and style of the line.
The first point.
The second point.
Draws a line connecting two point structures.
Syntax
'Declaration
 
Public Overloads Sub DrawLine( _
   ByVal pen As System.Drawing.Pen, _
   ByVal pt1 As System.Drawing.PointF, _
   ByVal pt2 As System.Drawing.PointF _
) 
public void DrawLine( 
   System.Drawing.Pen pen,
   System.Drawing.PointF pt1,
   System.Drawing.PointF pt2
)

Parameters

pen
System.Drawing.Pen object that determines the color, width, and style of the line.
pt1
The first point.
pt2
The second point.
Remarks
All coordinates are expressed in points, measured from the upper-left corner of the page.
See Also

Reference

C1PdfDocument Class
C1PdfDocument Members
Overload List