ComponentOne MultiSelect for WinForms
C1.Framework.Drawing.Gdi.DeviceContexts Namespace / CompatibleDeviceContext Class / SelectObject Method
A System.IntPtr that indicates the handle to the gdi object to be selected.

In This Topic
    SelectObject Method (CompatibleDeviceContext)
    In This Topic
    Selects an object into the specified device context(DC). The new object replaces the previous object of the same type.
    Syntax
    'Declaration
     
    
    Public Function SelectObject( _
       ByVal gdiObjectHandle As IntPtr _
    ) As IntPtr
    public IntPtr SelectObject( 
       IntPtr gdiObjectHandle
    )

    Parameters

    gdiObjectHandle
    A System.IntPtr that indicates the handle to the gdi object to be selected.

    Return Value

    Returns the handle of the previous gdi object of the same type.
    Remarks
    Note: When the handle of a gdi object is selected to DeviceContext, the properties of the gdi object can not changed and the gdi object can not be disposed.
    See Also