PDF for UWP | ComponentOne
C1.Xaml.Pdf Namespace / C1PdfDocument Class / DrawLine Method / DrawLine(Pen,Double,Double,Double,Double) Method
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,Double,Double,Double,Double) 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 Double, _
       ByVal y1 As Double, _
       ByVal x2 As Double, _
       ByVal y2 As Double _
    ) 
    public void DrawLine( 
       Pen pen,
       double x1,
       double y1,
       double x2,
       double y2
    )

    Parameters

    pen
    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