BufferedGraphicsContext.MaximumBuffer Özellik

Tanım

Kullanılacak arabellek boyutunun üst sınırını alır veya ayarlar.

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

Özellik Değeri

Size Arabellek boyutlarının en büyük boyutunu belirten bir.

Özel durumlar

Boyutun yüksekliği veya genişliği sıfırdan küçük veya sıfıra eşit.

Örnekler

Aşağıdaki örnekte, bir için arabellek için en büyük boyutu ayarlama gösterilmektedir BufferedGraphicsContext. Bu kod, sınıfı için BufferedGraphics sağlanan daha büyük bir örneğin parçasıdır.

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

Açıklamalar

Bu özellik, bellekte tutulması gereken arabellek için en büyük boyutları almanıza veya ayarlamanıza olanak tanır. Herhangi bir boyutta arabellek ayırabilirsiniz, ancak boyuttan MaximumBuffer büyük boyutlara sahip tüm arabellekler geçici olarak kullanılır ve nesne serbest bırakıldığında BufferedGraphics atılır.

Şunlara uygulanır

Ayrıca bkz.