BufferedGraphicsContext.MaximumBuffer Proprietà

Definizione

Ottiene o imposta la dimensione massima del buffer da utilizzare.

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

Valore della proprietà

Size

Struttura Size che indica le dimensioni massime del buffer.

Eccezioni

L'altezza o la larghezza della dimensione è minore o uguale a zero.

Esempio

Nell'esempio seguente viene illustrata l'impostazione delle dimensioni massime per il buffer per un BufferedGraphicsContextoggetto . Questo codice fa parte di un esempio più grande fornito per 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)

Commenti

Questa proprietà consente di ottenere o impostare le dimensioni massime per un buffer che deve essere mantenuto in memoria. È possibile allocare un buffer di qualsiasi dimensione, tuttavia qualsiasi buffer con dimensioni superiori alle MaximumBuffer dimensioni verrà usato temporaneamente e quindi rimosso quando l'oggetto BufferedGraphics viene rilasciato.

Si applica a

Vedi anche