ComponentOne Input for WinForms
C1.Win.C1Input.4.5.2 Assembly / C1.Framework.Drawing.Gdi Namespace / Graphics Class / DrawLine Method
A Pen indicate the pen used to draw
A System.Drawing.Point indicate the line start point
A System.Drawing.Point indicate the line end point

In This Topic
    DrawLine Method (Graphics)
    In This Topic
    Draw the special line by using given pen
    Syntax
    'Declaration
     
    Public Sub DrawLine( _
       ByVal pen As Pen, _
       ByVal startPoint As System.Drawing.Point, _
       ByVal endPoint As System.Drawing.Point _
    ) 
    public void DrawLine( 
       Pen pen,
       System.Drawing.Point startPoint,
       System.Drawing.Point endPoint
    )

    Parameters

    pen
    A Pen indicate the pen used to draw
    startPoint
    A System.Drawing.Point indicate the line start point
    endPoint
    A System.Drawing.Point indicate the line end point
    Exceptions
    ExceptionDescription
    Defines an exception class to handle the system error.
    See Also