ComponentOne PDF for .NET
C1.C1Pdf Namespace / C1PdfDocument Class / DrawLine Method / DrawLine(Pen,Single,Single,Single,Single) Method
System.Drawing.Pen object that determines the color, width, and style of the line.
x-coordinate of the first point.
y-coordinate of the first point.
x-coordinate of the second point.
y-coordinate of the second point.

In This Topic
    DrawLine(Pen,Single,Single,Single,Single) Method
    In This Topic
    Draws a line connecting the two points specified by coordinate pairs.
    Syntax
    'Declaration
     
    
    Public Overloads Sub DrawLine( _
       ByVal pen As Pen, _
       ByVal x1 As Single, _
       ByVal y1 As Single, _
       ByVal x2 As Single, _
       ByVal y2 As Single _
    ) 
    public void DrawLine( 
       Pen pen,
       float x1,
       float y1,
       float x2,
       float y2
    )

    Parameters

    pen
    System.Drawing.Pen object that determines the color, width, and style of the line.
    x1
    x-coordinate of the first point.
    y1
    y-coordinate of the first point.
    x2
    x-coordinate of the second point.
    y2
    y-coordinate of the second point.
    Remarks
    All coordinates are expressed in points, measured from the upper-left corner of the page.
    See Also