Document Solutions for Imaging
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Drawing Namespace / GcGraphics Class / DrawLine Method / DrawLine(Single,Single,Single,Single,Pen) Method
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.
The pen to use.

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

    Parameters

    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.
    pen
    The pen to use.
    See Also