Control.Scale Metodo

Definizione

Scala il controllo e degli eventuali controlli figlio.Scales the control and any child controls.

Overload

Scale(SizeF)

Ridimensiona il controllo e tutti i relativi controlli figlio in base al fattore di scala specificato.Scales the control and all child controls by the specified scaling factor.

Scale(Single)
Obsoleta.

Scala il controllo e degli eventuali controlli figlio.Scales the control and any child controls.

Scale(Single, Single)
Obsoleta.

Scala l'intero controllo ed eventuali controlli figlio.Scales the entire control and any child controls.

Scale(SizeF)

Ridimensiona il controllo e tutti i relativi controlli figlio in base al fattore di scala specificato.Scales the control and all child controls by the specified scaling factor.

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)

Parametri

factor
SizeF

Oggetto SizeF contenente i fattori di scala orizzontale e verticale.A SizeF containing the horizontal and vertical scaling factors.

Commenti

Il Scale metodo ridimensiona il controllo in base al ridimensionamento specificato factor .The Scale method scales the control by the specified scaling factor. Consente inoltre di ridimensionare in modo ricorsivo tutti i controlli figlio se la ScaleChildren proprietà è true .It also recursively scales all child controls if the ScaleChildren property is true. Internamente, questo metodo chiama ScaleControl per ridimensionare ogni controllo.Internally, this method calls ScaleControl to scale each control.

Vedi anche

Si applica a

Scale(Single)

Attenzione

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

Scala il controllo e degli eventuali controlli figlio.Scales the control and any child controls.

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);
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")>]
member this.Scale : single -> unit
member this.Scale : single -> unit
Public Sub Scale (ratio As Single)

Parametri

ratio
Single

Il rapporto da usare per l'adattamento in scala.The ratio to use for scaling.

Attributi

Si applica a

Scale(Single, Single)

Attenzione

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

Scala l'intero controllo ed eventuali controlli figlio.Scales the entire control and any child controls.

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);
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")>]
member this.Scale : single * single -> unit
member this.Scale : single * single -> unit
Public Sub Scale (dx As Single, dy As Single)

Parametri

dx
Single

Fattore di scala orizzontale.The horizontal scaling factor.

dy
Single

Fattore di scala verticale.The vertical scaling factor.

Attributi

Si applica a