Table of Contents

Method DeleteObject

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

DeleteObject(IntPtr)

The DeleteObject function 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 static bool DeleteObject(IntPtr handle)

Parameters

handle IntPtr

A handle to a logical pen, brush, font, bitmap, region, or palette.

Returns

bool

If the function succeeds, the return value is nonzero. If the specified handle is not valid or is currently selected into a DC, the return value is zero.