GraphicsPathIterator 類別

定義

提供在 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
實作

備註

注意

在 .NET 6 和更新版本中,只有 Windows 作業系統才支援包含此類型的 System.Drawing.Common 套件。 在跨平臺應用程式中使用此類型會導致編譯時期警告和執行時間例外狀況。 如需詳細資訊,請參閱 僅限 Windows 上支援的 System.Drawing.Common

建構函式

GraphicsPathIterator(GraphicsPath)

使用指定的 GraphicsPathIterator 物件,初始化 GraphicsPath 類別的新執行個體。

屬性

Count

取得路徑中的點數。

SubpathCount

取得路徑中的子路徑數。

方法

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

將關聯的 PathPointsPathTypes 屬性和 GraphicsPath 屬性陣列複製至這兩個指定的陣列。

CreateObjRef(Type)

建立包含所有相關資訊的物件,這些資訊是產生用來與遠端物件通訊的所需 Proxy。

(繼承來源 MarshalByRefObject)
Dispose()

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

Enumerate(PointF[], Byte[])

將關聯的 PathPointsPathTypes 屬性和 GraphicsPath 屬性陣列複製至這兩個指定的陣列。

Equals(Object)

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

(繼承來源 Object)
Finalize()

允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。

GetHashCode()

做為預設雜湊函式。

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

擷取控制這個執行個體存留期 (Lifetime) 原則的目前存留期服務物件。

(繼承來源 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)

適用於