Class SafeCompatibleDcHandle
A CompatibleDC SafeHandle implementation
Namespace: Dapplo.Windows.Gdi32.SafeHandles
Assembly: Dapplo.Windows.Gdi32.dll
Syntax
public class SafeCompatibleDcHandle : SafeDcHandle
Constructors
| Improve this Doc View SourceSafeCompatibleDcHandle()
Default constructor is needed to support marshalling!!
Declaration
public SafeCompatibleDcHandle()
SafeCompatibleDcHandle(IntPtr)
Create SafeCompatibleDcHandle from existing handle
Declaration
public SafeCompatibleDcHandle(IntPtr preexistingHandle)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | preexistingHandle | IntPtr with existing handle |
Methods
| Improve this Doc View SourceReleaseHandle()
Call DeleteDC, this disposes the unmanaged resources
Declaration
protected override bool ReleaseHandle()
Returns
Type | Description |
---|---|
System.Boolean | bool true if the DC was deleted |
SelectObject(SafeHandle)
Select an object onto the DC
Declaration
public SafeSelectObjectHandle SelectObject(SafeHandle objectSafeHandle)
Parameters
Type | Name | Description |
---|---|---|
SafeHandle | objectSafeHandle | SafeHandle for object |
Returns
Type | Description |
---|---|
SafeSelectObjectHandle | SafeSelectObjectHandle |