File: misc\GDI\DeviceContextType.cs
Project: ndp\fx\src\System.Drawing.csproj (System.Drawing)
//------------------------------------------------------------------------------
// <copyright file="IDeviceContext.cs" company="Microsoft">
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>                                                                
//------------------------------------------------------------------------------
 
#if WINFORMS_NAMESPACE
namespace System.Windows.Forms.Internal
#elif DRAWING_NAMESPACE
namespace System.Drawing.Internal
#else
namespace System.Experimental.Gdi
#endif
{
    /// <devdoc>
    ///     Represent the device type the context refers to.
    /// </devdoc>
#if WINFORMS_PUBLIC_GRAPHICS_LIBRARY
    public
#else
    internal
#endif
    enum DeviceContextType
    {
        // Unknown device
        Unknown     = 0x00,
        
        // Display DC - obtained from GetDC/GetDCEx/BeginPaint.
        Display     = 0x01,
 
        // Window DC including non-client area - obtained from GetWindowDC
        NCWindow    = 0x02,
 
        // Printer DC - obtained from CreateDC.
        NamedDevice = 0x03,
 
        // Information context - obtained from CreateIC.
        Information = 0x04,
 
        // Memory dc - obtained from CreateCompatibleDC.
        Memory      = 0x05,
 
        // Metafile dc - obtained from CreateEnhMetafile.
        Metafile    = 0x06 // currently not supported.
    }
}