MultiSelect for WinForms
DeleteObject メソッド

C1.Win.Input.6 アセンブリ > C1.Framework.Drawing.Gdi.DeviceContexts 名前空間 > DeviceContext クラス : DeleteObject メソッド
Handle to a logical pen, brush, font, bitmap, region, or palette.
Deletes a logical pen, brush, font, bitmap, region, or palette, freeing all system resources associated with the object. After the object is deleted, the specified handle is no longer valid.
シンタックス
'宣言
 
Public Shared Sub DeleteObject( _
   ByVal gdiObjectHandle As System.IntPtr _
) 
public static void DeleteObject( 
   System.IntPtr gdiObjectHandle
)

パラメータ

gdiObjectHandle
Handle to a logical pen, brush, font, bitmap, region, or palette.
例外
例外解説
If the specified handle is not valid or is currently selected into a DC, it would throw a C1.Framework.SystemErrorException.
解説
Do not delete a drawing object (pen or brush) while it is still selected into a DC. When a pattern brush is deleted, the bitmap associated with the brush is not deleted. The bitmap must be deleted independently.
参照

DeviceContext クラス
DeviceContext メンバ