Table of Contents

Method AddLine

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

AddLine(PointD, PointD)

Appends a line segment to this GraphicsPath.

public void AddLine(PointD pt1, PointD pt2)

Parameters

pt1 PointD

A PointD that represents the starting point of the line.

pt2 PointD

A PointD that represents the endpoint of the line.

Remarks

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.