VintaSoft Imaging .NET SDK v8.7
Vintasoft.Imaging.Pdf.Drawing Namespace / PdfGraphics Class / DrawLine Method / DrawLine(PdfPen,Single,Single,Single,Single) Method
PdfPen that determines the color, width, and style of the line.
The x-coordinate of the first point.
The y-coordinate of the first point.
The x-coordinate of the second point.
The y-coordinate of the second point.



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

    Parameters

    pen
    PdfPen that determines the color, width, and style of the line.
    x1
    The x-coordinate of the first point.
    y1
    The y-coordinate of the first point.
    x2
    The x-coordinate of the second point.
    y2
    The y-coordinate of the second point.
    Requirements

    Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also