<PackageReference Include="System.Drawing.Common" Version="9.0.0-preview.7.24405.4" />

GraphicsPathIterator

Provides the ability to iterate through subpaths in a GraphicsPath and test the types of shapes contained in each subpath. This class cannot be inherited.
public int Count { get; }

Gets the number of points in the path.

public int SubpathCount { get; }

Gets the number of subpaths in the path.

Initializes a new instance of the GraphicsPathIterator class with the specified GraphicsPath object.

public int CopyData(ref PointF points, ref byte types, int startIndex, int endIndex)

Copies the PathPoints property and PathTypes property arrays of the associated GraphicsPath into the two specified arrays.

public void Dispose()

Releases all resources used by this GraphicsPathIterator object.

public int Enumerate(ref PointF points, ref byte types)

Copies the PathPoints property and PathTypes property arrays of the associated GraphicsPath into the two specified arrays.

public bool HasCurve()

Indicates whether the path associated with this GraphicsPathIterator contains a curve.

public int NextMarker(GraphicsPath path)

This GraphicsPathIterator object has a GraphicsPath object associated with it. The NextMarker method increments the associated GraphicsPath to the next marker in its path and copies all the points contained between the current marker and the next marker (or end of path) to a second GraphicsPath object passed in to the parameter.

public int NextMarker(out int startIndex, out int endIndex)

Increments the GraphicsPathIterator to the next marker in the path and returns the start and stop indexes by way of the [out] parameters.

public int NextPathType(out byte pathType, out int startIndex, out int endIndex)

Gets the starting index and the ending index of the next group of data points that all have the same type.

public int NextSubpath(GraphicsPath path, out bool isClosed)

Gets the next figure (subpath) from the associated path of this GraphicsPathIterator.

public int NextSubpath(out int startIndex, out int endIndex, out bool isClosed)

Moves the GraphicsPathIterator to the next subpath in the path. The start index and end index of the next subpath are contained in the [out] parameters.

public void Rewind()

Rewinds this GraphicsPathIterator to the beginning of its associated path.