AddLine Method (Point, Point)
Collapse the table of content
Expand the table of content

GraphicsPath.AddLine Method (Point, Point)

 

Appends a line segment to this GraphicsPath.

Namespace:   System.Drawing.Drawing2D
Assembly:  System.Drawing (in System.Drawing.dll)

member AddLine : 
        pt1:Point *
        pt2:Point -> unit

Parameters

pt1
Type: System.Drawing.Point

A Point that represents the starting point of the line.

pt2
Type: System.Drawing.Point

A Point that represents the endpoint of the line.

This method adds the line segment defined by the specified points to the end of this GraphicsPath. If there are previous lines or curves in the GraphicsPath, a line segment is drawn to connect the last point in the path to the first point in the new line segment.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft