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)

使用指定的 GraphicsPathIterator 物件,初始化 GraphicsPath 類別的新執行個體。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)

將關聯的 PathPointsPathTypes 屬性和 GraphicsPath 屬性陣列複製至這兩個指定的陣列。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)

建立包含所有相關資訊的物件,這些資訊是產生用來與遠端物件通訊的所需 Proxy。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[])

將關聯的 PathPointsPathTypes 屬性和 GraphicsPath 屬性陣列複製至這兩個指定的陣列。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()

擷取控制這個執行個體存留期 (Lifetime) 原則的目前存留期服務物件。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 的淺層複本 (Shallow Copy)。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)

適用於