BufferedGraphicsContext.MaximumBuffer Vlastnost

Definice

Získá nebo nastaví maximální velikost vyrovnávací paměti, která se má použít.

public:
 property System::Drawing::Size MaximumBuffer { System::Drawing::Size get(); void set(System::Drawing::Size value); };
public System.Drawing.Size MaximumBuffer { get; set; }
member this.MaximumBuffer : System.Drawing.Size with get, set
Public Property MaximumBuffer As Size

Hodnota vlastnosti

Určuje Size maximální velikost dimenzí vyrovnávací paměti.

Výjimky

Výška nebo šířka velikosti je menší nebo rovna nule.

Příklady

Následující příklad ukazuje nastavení maximální velikosti vyrovnávací paměti pro .BufferedGraphicsContext Tento kód je součástí většího příkladu poskytovaného BufferedGraphics pro třídu.

// Sets the maximum size for the graphics buffer 
// of the buffered graphics context. Any allocation 
// requests for a buffer larger than this will create 
// a temporary buffered graphics context to host 
// the graphics buffer.
appDomainBufferedGraphicsContext->MaximumBuffer = System::Drawing::Size( 400, 400 );
// Sets the maximum size for the graphics buffer
// of the buffered graphics context. Any allocation
// requests for a buffer larger than this will create
// a temporary buffered graphics context to host
// the graphics buffer.
appDomainBufferedGraphicsContext.MaximumBuffer = new Size(400, 400);
' Sets the maximum size for the graphics buffer 
' of the buffered graphics context. Any allocation 
' requests for a buffer larger than this will create 
' a temporary buffered graphics context to host 
' the graphics buffer.
appDomainBufferedGraphicsContext.MaximumBuffer = New Size(400, 400)

Poznámky

Tato vlastnost umožňuje získat nebo nastavit maximální rozměry vyrovnávací paměti, která by měla být zachována v paměti. Vyrovnávací paměť libovolné velikosti můžete přidělit, ale jakákoli vyrovnávací paměť s rozměry většími než MaximumBuffer velikost se použije dočasně a po uvolnění objektu BufferedGraphics se zahodí.

Platí pro

Viz také