PathAddLines(PointF) Method

Adds a series of connected lines to the current figure of this Path instance.

Definition

Namespace: KGySoft.Drawing.Shapes
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 9.1.1
C#
public Path AddLines(
	params PointF[] points
)

Parameters

points  PointF
The points of the line segments to add to the current figure of this Path.

Return Value

Path
This Path instance.

Remarks

The first point of the points array will be the starting point of the first line segment. Each additional point specifies the endpoint of a line segment, whose starting point is the endpoint of the previous line.

If the current figure is not empty or closed, the added lines will be connected to the last point of the figure.

The points are not validated here but in the moment of drawing the coordinates of the possibly transformed path points must fall into the bounds of an int value; otherwise, an OverflowException will be thrown.

Exceptions

See Also