<PackageReference Include="System.Drawing.Common" Version="11.0.0-preview.2.26159.112" />

System.Drawing.Drawing2D.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.
namespace System.Drawing.Drawing2D { public sealed class GraphicsPathIterator : MarshalByRefObject, IDisposable { public int Count { get; } public int SubpathCount { get; } public GraphicsPathIterator(GraphicsPath path); public int CopyData(ref PointF[] points, ref byte[] types, int startIndex, int endIndex); public void Dispose(); public int Enumerate(ref PointF[] points, ref byte[] types); public bool HasCurve(); public int NextMarker(GraphicsPath path); public int NextMarker(out int startIndex, out int endIndex); public int NextPathType(out byte pathType, out int startIndex, out int endIndex); public int NextSubpath(GraphicsPath path, out bool isClosed); public int NextSubpath(out int startIndex, out int endIndex, out bool isClosed); public void Rewind(); } }