ListBox.GetScaledBounds(Rectangle, SizeF, BoundsSpecified) Metodo

Definizione

Recupera i limiti entro i quali viene ridimensionato il controllo ListBox.Retrieves the bounds within which the ListBox is scaled.

protected:
 override System::Drawing::Rectangle GetScaledBounds(System::Drawing::Rectangle bounds, System::Drawing::SizeF factor, System::Windows::Forms::BoundsSpecified specified);
protected override System.Drawing.Rectangle GetScaledBounds (System.Drawing.Rectangle bounds, System.Drawing.SizeF factor, System.Windows.Forms.BoundsSpecified specified);
override this.GetScaledBounds : System.Drawing.Rectangle * System.Drawing.SizeF * System.Windows.Forms.BoundsSpecified -> System.Drawing.Rectangle
Protected Overrides Function GetScaledBounds (bounds As Rectangle, factor As SizeF, specified As BoundsSpecified) As Rectangle

Parametri

bounds
Rectangle

Oggetto Rectangle che specifica l'area per la quale recuperare i limiti di visualizzazione.A Rectangle that specifies the area for which to retrieve the display bounds.

factor
SizeF

Altezza e larghezza dei limiti del controllo.The height and width of the control's bounds.

specified
BoundsSpecified

Uno dei valori di BoundsSpecified che specifica i limiti del controllo da usare per definirne le dimensioni e la posizione.One of the values of BoundsSpecified that specifies the bounds of the control to use when defining its size and position.

Restituisce

Rectangle

Oggetto Rectangle che rappresenta i limiti all'interno dei quali il controllo viene ridimensionato.A Rectangle representing the bounds within which the control is scaled.

Commenti

La ListBox classe esegue l'override del Control.GetScaledBounds metodo per garantire che l'altezza richiesta venga ridimensionata anziché l'altezza corrente.The ListBox class overrides the Control.GetScaledBounds method to ensure that the requested height is scaled rather than the current height.

Si applica a