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, 

The GraphicsPathIterator type exposes the following members.

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

Public propertyCountGets the number of points in the path.
Public propertySubpathCountGets the number of subpaths in the path.

Public methodCopyDataCopies the PathPoints property and PathTypes property arrays of the associated GraphicsPath into the two specified arrays.
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public methodDisposeReleases all resources used by this GraphicsPathIterator object.
Public methodEnumerateCopies the PathPoints property and PathTypes property arrays of the associated GraphicsPath into the two specified arrays.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodHasCurveIndicates whether the path associated with this GraphicsPathIterator contains a curve.
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone()Creates a shallow copy of the current Object. (Inherited from Object.)
Protected methodMemberwiseClone(Boolean)Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.)
Public methodNextMarker(GraphicsPath)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.
Public methodNextMarker(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.
Public methodNextPathTypeGets the starting index and the ending index of the next group of data points that all have the same type.
Public methodNextSubpath(GraphicsPath, Boolean)Gets the next figure (subpath) from the associated path of this GraphicsPathIterator.
Public methodNextSubpath(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.
Public methodRewindRewinds this GraphicsPathIterator to the beginning of its associated path.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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