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.

System.Object
  System.MarshalByRefObject
    System.Drawing.Drawing2D.GraphicsPathIterator

Namespace:  System.Drawing.Drawing2D
Assembly:  System.Drawing (in System.Drawing.dll)

public sealed class GraphicsPathIterator : MarshalByRefObject, 
	IDisposable

The GraphicsPathIterator type exposes the following members.

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

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

  NameDescription
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.)
Public methodGetHashCodeServes as the default hash function. (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.)
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.)
Top

.NET Framework

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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.
Show:
© 2014 Microsoft