Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

GraphicsPathIterator Class


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
Assembly:  System.Drawing (in System.Drawing.dll)


public sealed class GraphicsPathIterator : MarshalByRefObject, 


Initializes a new instance of the GraphicsPathIterator class with the specified GraphicsPath object.


Gets the number of points in the path.


Gets the number of subpaths in the path.

System_CAPS_pubmethodCopyData(PointF[], Byte[], Int32, Int32)

Copies the PathPoints property and PathTypes property arrays of the associated GraphicsPath into the two specified arrays.


Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.(Inherited from MarshalByRefObject.)


Releases all resources used by this GraphicsPathIterator object.

System_CAPS_pubmethodEnumerate(PointF[], Byte[])

Copies the PathPoints property and PathTypes property arrays of the associated GraphicsPath into the two specified arrays.


Determines whether the specified object is equal to the current object.(Inherited from Object.)


Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Overrides Object.Finalize().)


Serves as the default hash function. (Inherited from Object.)


Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)


Gets the Type of the current instance.(Inherited from Object.)


Indicates whether the path associated with this GraphicsPathIterator contains a curve.


Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.)


This GraphicsPathIterator object has a GraphicsPath object associated with it. The NextMarker method increments the associated GraphicsPath to the next marker in its path and copies all the points contained between the current marker and the next marker (or end of path) to a second GraphicsPath object passed in to the parameter.

System_CAPS_pubmethodNextMarker(Int32, Int32)

Increments the GraphicsPathIterator to the next marker in the path and returns the start and stop indexes by way of the [out] parameters.

System_CAPS_pubmethodNextPathType(Byte, Int32, Int32)

Gets the starting index and the ending index of the next group of data points that all have the same type.

System_CAPS_pubmethodNextSubpath(GraphicsPath, Boolean)

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

System_CAPS_pubmethodNextSubpath(Int32, Int32, Boolean)

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.


Rewinds this GraphicsPathIterator to the beginning of its associated path.


Returns a string that represents the current object.(Inherited from Object.)

.NET Framework
Available since 1.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft