Control.GetScaledBounds(Rectangle, SizeF, BoundsSpecified) Control.GetScaledBounds(Rectangle, SizeF, BoundsSpecified) Control.GetScaledBounds(Rectangle, SizeF, BoundsSpecified) Control.GetScaledBounds(Rectangle, SizeF, BoundsSpecified) Method

Definição

Recupera os limites dentro dos quais a escala do controle é ajustada.Retrieves the bounds within which the control is scaled.

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

Parâmetros

bounds
Rectangle Rectangle Rectangle 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 SizeF SizeF SizeF

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

specified
BoundsSpecified BoundsSpecified BoundsSpecified 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

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

Esse é um método auxiliar que é chamado pelo ScaleControl para recuperar os limites dentro dos quais o controle é dimensionado.This is a helper method that is called by ScaleControl to retrieve the bounds within which the control is scaled. Você pode substituir esse método para reutilizar ScaleControl a lógica de dimensionamento, mas deve fornecer seus próprios limites.You can override this method to reuse the ScaleControl scaling logic, but you must supply your own bounds. A implementação padrão retorna limites dimensionados que levam em conta os specified limites, se o controle é de nível superior, se o controle tem largura fixa ou tamanho automático, e quaisquer adornos que o controle possa ter.The default implementation returns scaled bounds that take into account the specified bounds, whether the control is top level, whether the control is fixed width or auto size, and any adornments the control might have.

Aplica-se a

Veja também