ComponentOne PDF for .NET
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.

In This Topic
    DrawLine(Pen,PointF,PointF) Method
    In This Topic
    Draws a line connecting two point structures.
    Syntax
    'Declaration
     
    
    Public Overloads Sub DrawLine( _
       ByVal pen As Pen, _
       ByVal pt1 As PointF, _
       ByVal pt2 As PointF _
    ) 
    public void DrawLine( 
       Pen pen,
       PointF pt1,
       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