GraphicsPathIterator GraphicsPathIterator GraphicsPathIterator GraphicsPathIterator Class

定义

提供循环访问 GraphicsPath 中的子路径并测试每一子路径中包含的形状类型的能力。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
继承
GraphicsPathIteratorGraphicsPathIteratorGraphicsPathIteratorGraphicsPathIterator
实现

构造函数

GraphicsPathIterator(GraphicsPath) GraphicsPathIterator(GraphicsPath) GraphicsPathIterator(GraphicsPath) GraphicsPathIterator(GraphicsPath)

使用指定的 GraphicsPath 对象初始化 GraphicsPathIterator 类的新实例。Initializes a new instance of the GraphicsPathIterator class with the specified GraphicsPath object.

属性

Count Count Count Count

获取路径中的点数。Gets the number of points in the path.

SubpathCount SubpathCount SubpathCount SubpathCount

获取路径中子路径的数目。Gets the number of subpaths in the path.

方法

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

将关联的 GraphicsPathPathPoints 属性和 PathTypes 属性数组复制到两个指定的数组中。Copies the PathPoints property and PathTypes property arrays of the associated GraphicsPath into the two specified arrays.

CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type) 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() Dispose() Dispose() Dispose()

释放由此 GraphicsPathIterator 对象使用的所有资源。Releases all resources used by this GraphicsPathIterator object.

Enumerate(PointF[], Byte[]) Enumerate(PointF[], Byte[]) Enumerate(PointF[], Byte[]) Enumerate(PointF[], Byte[])

将关联的 GraphicsPathPathPoints 属性和 PathTypes 属性数组复制到两个指定的数组中。Copies the PathPoints property and PathTypes property arrays of the associated GraphicsPath into the two specified arrays.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
Finalize() Finalize() Finalize() Finalize()

在垃圾回收将某一对象回收前允许该对象尝试释放资源并执行其他清理操作。Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetLifetimeService() GetLifetimeService() GetLifetimeService() GetLifetimeService()

检索控制此实例的生存期策略的当前生存期服务对象。Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
HasCurve() HasCurve() HasCurve() HasCurve()

指示与此 GraphicsPathIterator 关联的路径是否包含曲线。Indicates whether the path associated with this GraphicsPathIterator contains a curve.

InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService()

获取生存期服务对象来控制此实例的生存期策略。Obtains a lifetime service object to control the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean)

创建当前 MarshalByRefObject 对象的浅表副本。Creates a shallow copy of the current MarshalByRefObject object.

(Inherited from MarshalByRefObject)
NextMarker(GraphicsPath) NextMarker(GraphicsPath) NextMarker(GraphicsPath) NextMarker(GraphicsPath)

GraphicsPathIterator 对象具有与之关联的 GraphicsPath 对象。This GraphicsPathIterator object has a GraphicsPath object associated with it. NextMarker(GraphicsPath) 方法将关联的 GraphicsPath 增加到其路径中的下一标记,并将当前标记和下一标记(或路径末尾)之间包含的所有点复制到下一个传入该参数的 GraphicsPath 对象。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) NextMarker(Int32, Int32) NextMarker(Int32, Int32) NextMarker(Int32, Int32)

GraphicsPathIterator 增加到路径中的下一个标记,并通过 [out] 参数返回起始和结束索引。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) NextPathType(Byte, Int32, Int32) NextPathType(Byte, Int32, Int32) 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) NextSubpath(GraphicsPath, Boolean) NextSubpath(GraphicsPath, Boolean) NextSubpath(GraphicsPath, Boolean)

从该 GraphicsPathIterator 的关联路径获取下一图形(子路径)。Gets the next figure (subpath) from the associated path of this GraphicsPathIterator.

NextSubpath(Int32, Int32, Boolean) NextSubpath(Int32, Int32, Boolean) NextSubpath(Int32, Int32, Boolean) NextSubpath(Int32, Int32, Boolean)

GraphicsPathIterator 移至路径中的下一子路径。Moves the GraphicsPathIterator to the next subpath in the path. 下一子路径的起始索引和结束索引包含在 [out] 参数中。The start index and end index of the next subpath are contained in the [out] parameters.

Rewind() Rewind() Rewind() Rewind()

将此 GraphicsPathIterator 重绕到其关联路径的起始处。Rewinds this GraphicsPathIterator to the beginning of its associated path.

ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

适用于