IDeviceContext 介面
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
定義取得和釋放 Windows 裝置内容的現有控制代碼的方法。
public interface class IDeviceContext : IDisposable
C#
public interface IDeviceContext : IDisposable
type IDeviceContext = interface
interface IDisposable
Public Interface IDeviceContext
Implements IDisposable
- 衍生
- 實作
裝置內容會定義圖形物件,以在 Windows 型裝置上繪製。 實作 IDeviceContext 介面的類別範例是 Graphics 類別。
Dispose() |
執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。 (繼承來源 IDisposable) |
Get |
傳回 Windows 裝置內容的控制代碼。 |
Release |
釋放 Windows 裝置內容的控制代碼。 |
產品 | 版本 |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |