## NextSubpath(out int, out int, out bool) {#nextsubpath}

移动[`GraphicsPathIterator`](../../graphicspathiterator)到路径中的下一个子路径。下一个子路径的开始索引和结束索引包含在[out]参数中。

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

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| startIndex | Int32& | [out] 接收下一个子路径的起始索引。 |
| endIndex | Int32& | [out] 接收下一个子路径的结束索引。 |
| isClosed | Boolean& | [out] 表示子路径是否关闭。 |

### 返回值

检索到的图窗（子路径）中的数据点数。如果没有更多要检索的数字，则返回零。

### 也可以看看

* class [GraphicsPathIterator](../../graphicspathiterator)
* 命名空间 [System.Drawing.Drawing2D](../../graphicspathiterator)
* 部件 [Aspose.Drawing](../../../)

---

## NextSubpath(GraphicsPath, out bool) {#nextsubpath_1}

从 this 的关联路径中获取下一个图形（子路径）[`GraphicsPathIterator`](../../graphicspathiterator).

```csharp
public int NextSubpath(GraphicsPath path, out bool isClosed)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| path | GraphicsPath | 一个[`GraphicsPath`](../../graphicspath)也就是说，将其数据点设置为与该迭代器检索到的图形（子路径）的数据点相匹配。 |
| isClosed | Boolean& | [out] 表示当前子路径是否关闭。如果图形闭合则为真，否则为假。 |

### 返回值

检索到的图窗（子路径）中的数据点数。如果没有更多要检索的数字，则返回零。

### 也可以看看

* class [GraphicsPath](../../graphicspath)
* class [GraphicsPathIterator](../../graphicspathiterator)
* 命名空间 [System.Drawing.Drawing2D](../../graphicspathiterator)
* 部件 [Aspose.Drawing](../../../)

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