## GraphicsPathIterator class

提供遍历子路径的能力GraphicsPath并测试每个子路径中包含的形状类型。 这个类不能被继承。

```csharp
public sealed class GraphicsPathIterator : IDisposable
```

## 构造函数

| 姓名 | 描述 |
| --- | --- |
| [GraphicsPathIterator](graphicspathiterator)(GraphicsPath) | 初始化[`GraphicsPathIterator`](../graphicspathiterator)类. |

## 特性

| 姓名 | 描述 |
| --- | --- |
| [Count](../../system.drawing.drawing2d/graphicspathiterator/count) { get; } | 获取路径中的点数。 |
| [SubpathCount](../../system.drawing.drawing2d/graphicspathiterator/subpathcount) { get; } | 获取路径中的子路径数。 |

## 方法

| 姓名 | 描述 |
| --- | --- |
| [CopyData](../../system.drawing.drawing2d/graphicspathiterator/copydata)(ref PointF[], ref byte[], int, int) | 复制关联的 GraphicsPath.PathPoints 属性和 GraphicsPath.PathTypes 属性数组 [`GraphicsPath`](../graphicspath)进入两个指定的数组。 |
| [Dispose](../../system.drawing.drawing2d/graphicspathiterator/dispose)() | 执行与释放、释放或重置非托管资源相关的应用程序定义任务。 |
| [Enumerate](../../system.drawing.drawing2d/graphicspathiterator/enumerate)(ref PointF[], ref byte[]) | 复制关联的 GraphicsPath.PathPoints 属性和 GraphicsPath.PathTypes 属性数组 [`GraphicsPath`](../graphicspath)进入两个指定的数组。 |
| [HasCurve](../../system.drawing.drawing2d/graphicspathiterator/hascurve)() | 表示是否与此关联的路径[`GraphicsPathIterator`](../graphicspathiterator)包含一条曲线。 |
| [NextMarker](../../system.drawing.drawing2d/graphicspathiterator/nextmarker#nextmarker_1)(GraphicsPath) | 这个[`GraphicsPathIterator`](../graphicspathiterator)对象有一个[`GraphicsPath`](../graphicspath)与之关联的对象。 此方法递增关联的[`GraphicsPath`](../graphicspath)到其 path 中的下一个标记，并将当前标记和下一个标记（或路径结尾） 之间包含的所有点复制到第二个[`GraphicsPath`](../graphicspath)传入参数的对象. |
| [NextMarker](../../system.drawing.drawing2d/graphicspathiterator/nextmarker#nextmarker)(out int, out int) | 递增[`GraphicsPathIterator`](../graphicspathiterator)到 path 中的下一个标记，并通过 [out] 参数返回开始和停止索引。 |
| [NextPathType](../../system.drawing.drawing2d/graphicspathiterator/nextpathtype)(out byte, out int, out int) | 获取下一组同类型数据点的起始索引和结束索引。 |
| [NextSubpath](../../system.drawing.drawing2d/graphicspathiterator/nextsubpath#nextsubpath_1)(GraphicsPath, out bool) | 从 this 的关联路径中获取下一个图形（子路径）[`GraphicsPathIterator`](../graphicspathiterator). |
| [NextSubpath](../../system.drawing.drawing2d/graphicspathiterator/nextsubpath#nextsubpath)(out int, out int, out bool) | 移动[`GraphicsPathIterator`](../graphicspathiterator)到路径中的下一个子路径。下一个子路径的开始索引和结束索引包含在[out]参数中。 |
| [Rewind](../../system.drawing.drawing2d/graphicspathiterator/rewind)() | 倒带[`GraphicsPathIterator`](../graphicspathiterator)到其关联路径的开头。 |

### 也可以看看

* 命名空间 [System.Drawing.Drawing2D](../../system.drawing.drawing2d)
* 部件 [Aspose.Drawing](../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Drawing.dll -->
