VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.Pdf.Drawing Namespace / PdfGraphics Class / DrawLine Methods / DrawLine(PdfPen,PointF,PointF) Method
Syntax Requirements SeeAlso
In This Topic
    DrawLine(PdfPen,PointF,PointF) Method (PdfGraphics)
    In This Topic
    Draws a line connecting two System.Drawing.PointF structures.
    Syntax
    'Declaration
    
    Public Overloads Sub DrawLine( _
    ByVal pen
    PdfPen that determines the color, width, and style of the line.
    As PdfPen, _
    ByVal pt1
    System.Drawing.PointF structure that represents the first point to connect.
    As System.Drawing.PointF, _
    ByVal pt2
    System.Drawing.PointF structure that represents the second point to connect.
    As System.Drawing.PointF _
    )
    public void DrawLine(
    PdfPen pen,
    System.Drawing.PointF pt1,
    System.Drawing.PointF pt2
    )
    public: void DrawLine(
    PdfPen* pen,
    System.Drawing.PointF pt1,
    System.Drawing.PointF pt2
    )
    public:
    void DrawLine(
    PdfPen^ pen,
    System.Drawing.PointF pt1,
    System.Drawing.PointF pt2
    )

    Parameters

    pen
    PdfPen that determines the color, width, and style of the line.
    pt1
    System.Drawing.PointF structure that represents the first point to connect.
    pt2
    System.Drawing.PointF structure that represents the second point to connect.
    Requirements

    Target Platforms: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also