Control.GetScaledBounds(Rectangle, SizeF, BoundsSpecified) Método
Definición
Recupera los límites dentro de los cuales se escala el control.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 que especifica el área para la que se deben recuperar los límites de pantalla.A Rectangle that specifies the area for which to retrieve the display bounds.
- factor
- SizeF
El alto y el ancho de los límites del control.The height and width of the control's bounds.
- specified
- BoundsSpecified
Uno de los valores de BoundsSpecified que especifica los límites del control que se usarán al definir su tamaño y posición.One of the values of BoundsSpecified that specifies the bounds of the control to use when defining its size and position.
Devoluciones
Rectangle que representa los límites dentro de los cuales se escala el control.A Rectangle representing the bounds within which the control is scaled.
Comentarios
Se trata de un método auxiliar al que llama ScaleControl para recuperar los límites dentro de los cuales se escala el control.This is a helper method that is called by ScaleControl to retrieve the bounds within which the control is scaled. Puede invalidar este método para reutilizar la lógica de escala ScaleControl, pero debe proporcionar sus propios límites.You can override this method to reuse the ScaleControl scaling logic, but you must supply your own bounds. La implementación predeterminada devuelve límites de escala que tienen en cuenta los límites specified
, si el control es de nivel superior, si el control es de ancho fijo o de tamaño automático, y los elementos gráficos que pueda tener el control.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.