Spread WPF 18
GrapeCity.Drawing Namespace / IDrawingContext Interface / DrawLine Method / DrawLine(Pen,Double,Double,Double,Double) Method
The x-coordinate of the start point of the line.
The y-coordinate of the start point of the line.
The x-coordinate of the end point of the line.
The y-coordinate of the end point of the line.


In This Topic
    DrawLine(Pen,Double,Double,Double,Double) Method
    In This Topic
    Draws a line between the specified points using the specified GrapeCity.Spreadsheet.BorderLine.
    Syntax
    'Declaration
     
    Overloads Sub DrawLine( _
       ByVal pen As Pen, _
       ByVal x As Double, _
       ByVal y As Double, _
       ByVal x2 As Double, _
       ByVal y2 As Double _
    ) 
    'Usage
     
    Dim instance As IDrawingContext
    Dim pen As Pen
    Dim x As Double
    Dim y As Double
    Dim x2 As Double
    Dim y2 As Double
     
    instance.DrawLine(pen, x, y, x2, y2)
    void DrawLine( 
       Pen pen,
       double x,
       double y,
       double x2,
       double y2
    )

    Parameters

    pen
    x
    The x-coordinate of the start point of the line.
    y
    The y-coordinate of the start point of the line.
    x2
    The x-coordinate of the end point of the line.
    y2
    The y-coordinate of the end point of the line.
    See Also