Control.Scale Método

Definición

Ajusta la escala del control y de todos los controles secundarios.

Sobrecargas

Scale(SizeF)

Escala el control y todos los controles secundarios según el factor de escala especificado.

Scale(Single)
Obsoleto.
Obsoleto.

Ajusta la escala del control y de todos los controles secundarios.

Scale(Single, Single)
Obsoleto.
Obsoleto.

Ajusta a escala todo el control y los controles secundarios.

Scale(SizeF)

Escala el control y todos los controles secundarios según el factor de escala especificado.

public:
 void Scale(System::Drawing::SizeF factor);
public void Scale (System.Drawing.SizeF factor);
member this.Scale : System.Drawing.SizeF -> unit
Public Sub Scale (factor As SizeF)

Parámetros

factor
SizeF

SizeF que contiene los factores de escala horizontal y vertical.

Comentarios

El Scale método escala el control según el escalado factorespecificado. También escala de forma recursiva todos los controles secundarios si la ScaleChildren propiedad es true. Internamente, este método llama ScaleControl a para escalar cada control.

Consulte también

Se aplica a

Scale(Single)

Precaución

This method has been deprecated. Use the Scale(SizeF ratio) method instead. http://go.microsoft.com/fwlink/?linkid=14202

Precaución

This method has been deprecated. Use the Scale(SizeF ratio) method instead. https://go.microsoft.com/fwlink/?linkid=14202

Ajusta la escala del control y de todos los controles secundarios.

public:
 void Scale(float ratio);
public void Scale (float ratio);
[System.Obsolete("This method has been deprecated. Use the Scale(SizeF ratio) method instead. http://go.microsoft.com/fwlink/?linkid=14202")]
public void Scale (float ratio);
[System.Obsolete("This method has been deprecated. Use the Scale(SizeF ratio) method instead. https://go.microsoft.com/fwlink/?linkid=14202")]
public void Scale (float ratio);
member this.Scale : single -> unit
[<System.Obsolete("This method has been deprecated. Use the Scale(SizeF ratio) method instead. http://go.microsoft.com/fwlink/?linkid=14202")>]
member this.Scale : single -> unit
[<System.Obsolete("This method has been deprecated. Use the Scale(SizeF ratio) method instead. https://go.microsoft.com/fwlink/?linkid=14202")>]
member this.Scale : single -> unit
Public Sub Scale (ratio As Single)

Parámetros

ratio
Single

La proporción que se debe utilizar para ajustar a escala.

Atributos

Se aplica a

Scale(Single, Single)

Precaución

This method has been deprecated. Use the Scale(SizeF ratio) method instead. http://go.microsoft.com/fwlink/?linkid=14202

Precaución

This method has been deprecated. Use the Scale(SizeF ratio) method instead. https://go.microsoft.com/fwlink/?linkid=14202

Ajusta a escala todo el control y los controles secundarios.

public:
 void Scale(float dx, float dy);
public void Scale (float dx, float dy);
[System.Obsolete("This method has been deprecated. Use the Scale(SizeF ratio) method instead. http://go.microsoft.com/fwlink/?linkid=14202")]
public void Scale (float dx, float dy);
[System.Obsolete("This method has been deprecated. Use the Scale(SizeF ratio) method instead. https://go.microsoft.com/fwlink/?linkid=14202")]
public void Scale (float dx, float dy);
member this.Scale : single * single -> unit
[<System.Obsolete("This method has been deprecated. Use the Scale(SizeF ratio) method instead. http://go.microsoft.com/fwlink/?linkid=14202")>]
member this.Scale : single * single -> unit
[<System.Obsolete("This method has been deprecated. Use the Scale(SizeF ratio) method instead. https://go.microsoft.com/fwlink/?linkid=14202")>]
member this.Scale : single * single -> unit
Public Sub Scale (dx As Single, dy As Single)

Parámetros

dx
Single

Factor de escala horizontal.

dy
Single

Factor de escala vertical.

Atributos

Se aplica a