This documentation is archived and is not being maintained.

BufferedGraphicsManager.Current Property

Gets the BufferedGraphicsContext for the current application domain.

Namespace: System.Drawing
Assembly: System.Drawing (in system.drawing.dll)

public static BufferedGraphicsContext Current { get; }
/** @property */
public static BufferedGraphicsContext get_Current ()

public static function get Current () : BufferedGraphicsContext

Not applicable.

Property Value

The BufferedGraphicsContext for the current application domain.

Within an application the Current property always returns the same BufferedGraphicsContext object.

The following code example demonstrates acquiring the BufferedGraphicsContext for the current application domain.

// Retrieves the BufferedGraphicsContext for the 
// current application domain.
BufferedGraphicsContext appDomainGraphicsContext = 
     BufferedGraphicsManager.Current;

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Show: