BufferedGraphicsContext.MaximumBuffer Propriété

Définition

Obtient ou définit la taille maximale de la mémoire tampon à utiliser.

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

Valeur de propriété

Size indiquant la taille maximale des dimensions de la mémoire tampon.

Exceptions

La hauteur ou la largeur de la taille est inférieure ou égale à zéro.

Exemples

L’exemple suivant illustre la définition de la taille maximale de la mémoire tampon pour un BufferedGraphicsContext. Ce code fait partie d’un exemple plus large fourni pour la BufferedGraphics classe .

// 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)

Remarques

Cette propriété vous permet d’obtenir ou de définir les dimensions maximales d’une mémoire tampon qui doit être conservée en mémoire. Vous pouvez allouer une mémoire tampon de n’importe quelle taille, mais toute mémoire tampon dont les dimensions sont supérieures à la MaximumBuffer taille est utilisée temporairement, puis ignorée lorsque l’objet BufferedGraphics est libéré.

S’applique à

Voir aussi