Edit

Bagikan melalui


GraphicsPathIterator Class

Definition

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.

public ref class GraphicsPathIterator sealed : MarshalByRefObject, IDisposable
public sealed class GraphicsPathIterator : MarshalByRefObject, IDisposable
type GraphicsPathIterator = class
    inherit MarshalByRefObject
    interface IDisposable
Public NotInheritable Class GraphicsPathIterator
Inherits MarshalByRefObject
Implements IDisposable
Inheritance
GraphicsPathIterator
Implements

Remarks

Note

In .NET 6 and later versions, the System.Drawing.Common package, which includes this type, is only supported on Windows operating systems. Use of this type in cross-platform apps causes compile-time warnings and run-time exceptions. For more information, see System.Drawing.Common only supported on Windows.

Constructors

GraphicsPathIterator(GraphicsPath)

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

Properties

Count

Gets the number of points in the path.

SubpathCount

Gets the number of subpaths in the path.

Methods

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

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

CopyData(Span<PointF>, Span<Byte>, Int32, Int32)

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

CreateObjRef(Type)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(Inherited from MarshalByRefObject)
Dispose()

Releases all resources used by this GraphicsPathIterator object.

Enumerate(PointF[], Byte[])

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

Enumerate(Span<PointF>, Span<Byte>)

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

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
Finalize()

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

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetLifetimeService()
Obsolete.

Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
HasCurve()

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

InitializeLifetimeService()
Obsolete.

Obtains a lifetime service object to control the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
MemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.

(Inherited from MarshalByRefObject)
NextMarker(GraphicsPath)

This GraphicsPathIterator object has a GraphicsPath object associated with it. The NextMarker(GraphicsPath) 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.

NextMarker(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.

NextPathType(Byte, Int32, Int32)

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

NextSubpath(GraphicsPath, Boolean)

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

NextSubpath(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.

Rewind()

Rewinds this GraphicsPathIterator to the beginning of its associated path.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to