BufferedGraphicsManager.Current 属性

定义

获取当前应用程序域的 BufferedGraphicsContext

public:
 static property System::Drawing::BufferedGraphicsContext ^ Current { System::Drawing::BufferedGraphicsContext ^ get(); };
public static System.Drawing.BufferedGraphicsContext Current { get; }
static member Current : System.Drawing.BufferedGraphicsContext
Public Shared ReadOnly Property Current As BufferedGraphicsContext

属性值

当前应用程序域的 BufferedGraphicsContext

示例

下面的代码示例演示如何获取 BufferedGraphicsContext 当前应用程序域的 。

// Retrieves the BufferedGraphicsContext for the 
// current application domain.
BufferedGraphicsContext^ appDomainGraphicsContext =
   BufferedGraphicsManager::Current;
// Retrieves the BufferedGraphicsContext for the
// current application domain.
BufferedGraphicsContext appDomainGraphicsContext =
     BufferedGraphicsManager.Current;
' Retrieves the BufferedGraphicsContext for the 
' current application domain.
Dim appDomainGraphicsContext As BufferedGraphicsContext = BufferedGraphicsManager.Current

注解

在应用程序中, Current 属性始终返回相同的 BufferedGraphicsContext 对象。

适用于

另请参阅