Control.ScaleControl(SizeF, BoundsSpecified) Control.ScaleControl(SizeF, BoundsSpecified) Control.ScaleControl(SizeF, BoundsSpecified) Control.ScaleControl(SizeF, BoundsSpecified) Method

Definição

Dimensiona o local de um controle, tamanho, preenchimento e margem.Scales a control's location, size, padding and margin.

protected:
 virtual void ScaleControl(System::Drawing::SizeF factor, System::Windows::Forms::BoundsSpecified specified);
protected virtual void ScaleControl (System.Drawing.SizeF factor, System.Windows.Forms.BoundsSpecified specified);
abstract member ScaleControl : System.Drawing.SizeF * System.Windows.Forms.BoundsSpecified -> unit
override this.ScaleControl : System.Drawing.SizeF * System.Windows.Forms.BoundsSpecified -> unit
Protected Overridable Sub ScaleControl (factor As SizeF, specified As BoundsSpecified)

Parâmetros

factor
SizeF SizeF SizeF SizeF

O fator pelo qual a altura e a largura do controle serão dimensionadas.The factor by which the height and width of the control will be scaled.

specified
BoundsSpecified BoundsSpecified BoundsSpecified BoundsSpecified

Um valor BoundsSpecified que especifica os limites do controle para usar ao definir seu tamanho e posição.A BoundsSpecified value that specifies the bounds of the control to use when defining its size and position.

Exemplos

BoundsSpecified

Scale

GetScaledBounds

SetBoundsCore

Comentários

Se o controle for de nível superior, isso não dimensionará o local do controle.If the control is top level, this will not scale the control's location. Isso não dimensiona os filhos ou o tamanho dos controles dimensionados automaticamente.This does not scale children or the size of automatically sized controls. Você pode omitir o dimensionamento em qualquer direção alterando o specified valor do parâmetro.You can omit scaling in any direction by changing the value of the specified parameter.

Aplica-se a