IDeviceContext 介面

定義

定義取得和釋放 Windows 裝置内容的現有控制代碼的方法。

public interface class IDeviceContext : IDisposable
public interface IDeviceContext : IDisposable
type IDeviceContext = interface
    interface IDisposable
Public Interface IDeviceContext
Implements IDisposable
衍生
實作

備註

裝置內容會定義繪圖物件,以在 Windows 型裝置上繪製。 實作 IDeviceContext 介面的類別範例是 Graphics 類別。

方法

Dispose()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。

(繼承來源 IDisposable)
GetHdc()

傳回 Windows 裝置內容的控制代碼。

ReleaseHdc()

釋放 Windows 裝置內容的控制代碼。

適用於