共用方式為


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 物件。

適用於

另請參閱