<PackageReference Include="System.Drawing.Common" Version="10.0.0-rc.2.25502.107" />

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 void Dispose(); public int NextSubpath(out int startIndex, out int endIndex, out bool isClosed); public int NextSubpath(GraphicsPath path, out bool isClosed); public int NextPathType(out byte pathType, out int startIndex, out int endIndex); public int NextMarker(out int startIndex, out int endIndex); public int NextMarker(GraphicsPath path); public bool HasCurve(); public void Rewind(); public int Enumerate(ref PointF[] points, ref byte[] types); public int CopyData(ref PointF[] points, ref byte[] types, int startIndex, int endIndex); } }