ListBox.GetScaledBounds(Rectangle, SizeF, BoundsSpecified) Método

Definição

Recupera os limites dentro dos quais o ListBox dimensionado.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

Parâmetros

bounds
Rectangle

Um Rectangle que especifica a área para a qual recuperar os limites de exibição.A Rectangle that specifies the area for which to retrieve the display bounds.

factor
SizeF

A altura e a largura dos limites do controle.The height and width of the control's bounds.

specified
BoundsSpecified

Um dos valores de BoundsSpecified que especifica os limites do controle a ser usado ao definir seu tamanho e posição.One of the values of BoundsSpecified that specifies the bounds of the control to use when defining its size and position.

Retornos

Rectangle

Um Rectangle que representa os limites dentro dos quais a escala do controle é ajustada.A Rectangle representing the bounds within which the control is scaled.

Comentários

A classe ListBox substitui o método Control.GetScaledBounds para garantir que a altura solicitada seja dimensionada em vez da altura atual.The ListBox class overrides the Control.GetScaledBounds method to ensure that the requested height is scaled rather than the current height.

Aplica-se a