GraphicsPathIterator 類別

定義

提供在 a GraphicsPath 中遍歷子路徑並測試每個子路徑中形狀類型的能力。 此類別無法獲得繼承。

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
繼承
GraphicsPathIterator
實作

備註

Note

在 .NET 6 和更新版本中,只有 Windows作系統才支援包含此類型的 System.Drawing.Common 套件。 跨平台應用程式使用此類會引發編譯時警告及執行時異常。 如需詳細資訊,請參閱 僅限 Windows 上支援的 System.Drawing.Common。

建構函式

名稱 Description
GraphicsPathIterator(GraphicsPath)

初始化該類別的新實例 GraphicsPathIterator ,並使用指定 GraphicsPath 物件。

屬性

名稱 Description
Count

會得到路徑上的點數。

SubpathCount

會取得路徑中子路徑的數量。

方法

名稱 Description
CopyData(PointF[], Byte[], Int32, Int32)

PathPoints所關聯PathTypes的屬性與GraphicsPath屬性陣列複製到指定的兩個陣列中。

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

PathPoints所關聯PathTypes的屬性與GraphicsPath屬性陣列複製到指定的兩個陣列中。

CreateObjRef(Type)

建立一個物件,包含產生代理伺服器所需的所有相關資訊,用於與遠端物件通訊。

(繼承來源 MarshalByRefObject)
Dispose()

釋放此 GraphicsPathIterator 物件所使用的所有資源。

Enumerate(PointF[], Byte[])

PathPoints所關聯PathTypes的屬性與GraphicsPath屬性陣列複製到指定的兩個陣列中。

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

PathPoints所關聯PathTypes的屬性與GraphicsPath屬性陣列複製到指定的兩個陣列中。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
Finalize()

允許對象嘗試釋放資源,並在垃圾收集回收之前執行其他清除作業。

GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetLifetimeService()
已淘汰.

擷取控制這個實例存留期原則的目前存留期服務物件。

(繼承來源 MarshalByRefObject)
GetType()

取得目前實例的 Type

(繼承來源 Object)
HasCurve()

表示與此 GraphicsPathIterator 關聯的路徑是否包含曲線。

InitializeLifetimeService()
已淘汰.

取得存留期服務物件,以控制這個實例的存留期原則。

(繼承來源 MarshalByRefObject)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
MemberwiseClone(Boolean)

建立目前 MarshalByRefObject 對象的淺層複本。

(繼承來源 MarshalByRefObject)
NextMarker(GraphicsPath)

這個 GraphicsPathIterator 物件有一個 GraphicsPath 物件對應。 此 NextMarker(GraphicsPath) 方法會增加與路徑上下一個標記子相關的 GraphicsPath ,並將目前標記器與下一個標記(或路徑結束點)之間的所有點複製到參數中傳送到的第二個 GraphicsPath 物件。

NextMarker(Int32, Int32)

GraphicsPathIterator 增量到路徑中的下一個標記,並透過 [out] 參數回傳起始與停止索引。

NextPathType(Byte, Int32, Int32)

取得下一組資料點的起始索引和結束索引,這些資料點都是相同型態。

NextSubpath(GraphicsPath, Boolean)

從該 GraphicsPathIterator路徑 得到下一個圖形(子路徑)。

NextSubpath(Int32, Int32, Boolean)

將 移 GraphicsPathIterator 到 路徑上的下一個子路徑。 下一個子路徑的起始索引與結束索引包含在 [out] 參數中。

Rewind()

GraphicsPathIterator 帶到其相關路徑的起點。

ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)

適用於