GraphicsPathIterator.NextSubpath

NextSubpath(out int, out int, out bool)

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 int NextSubpath(out int startIndex, out int endIndex, out bool isClosed)
ParameterTypeDescription
startIndexInt32&[out] Receives the starting index of the next subpath.
endIndexInt32&[out] Receives the ending index of the next subpath.
isClosedBoolean&[out] Indicates whether the subpath is closed.

Return Value

The number of data points in the retrieved figure (subpath). If there are no more figures to retrieve, zero is returned.

See Also


NextSubpath(GraphicsPath, out bool)

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

public int NextSubpath(GraphicsPath path, out bool isClosed)
ParameterTypeDescription
pathGraphicsPathA GraphicsPath that is to have its data points set to match the data points of the retrieved figure (subpath) for this iterator.
isClosedBoolean&[out] Indicates whether the current subpath is closed. It is true if the if the figure is closed, otherwise it is false.

Return Value

The number of data points in the retrieved figure (subpath). If there are no more figures to retrieve, zero is returned.

See Also