Class SafeSelectObjectHandle
A select object safehandle implementation This will select the passed SafeHandle to the HDC and replace the returned value when disposing
Inheritance
System.Object
SafeSelectObjectHandle
Namespace: Dapplo.Windows.Gdi32.SafeHandles
Assembly: Dapplo.Windows.Gdi32.dll
Syntax
public class SafeSelectObjectHandle : SafeHandleZeroOrMinusOneIsInvalid
Constructors
| Improve this Doc View SourceSafeSelectObjectHandle()
Default constructor is needed to support marshalling!!
Declaration
public SafeSelectObjectHandle()
SafeSelectObjectHandle(SafeHandle, SafeHandle)
Constructor for the SafeSelectObjectHandle
Declaration
public SafeSelectObjectHandle(SafeHandle hdc, SafeHandle newObjectSafeHandle)
Parameters
Type | Name | Description |
---|---|---|
SafeHandle | hdc | SafeHandle for the DC |
SafeHandle | newObjectSafeHandle | SafeHandle to the object which is select to the DC |
Methods
| Improve this Doc View SourceReleaseHandle()
Place the original object back on the DC
Declaration
protected override bool ReleaseHandle()
Returns
Type | Description |
---|---|
System.Boolean | allways true (except for exceptions) |