Control.Scale Méthode
Définition
Dimensionne le contrôle et ses contrôles enfants.Scales the control and any child controls.
Surcharges
Scale(SizeF) |
Dimensionne le contrôle et tous les contrôles enfants au facteur d'échelle spécifié.Scales the control and all child controls by the specified scaling factor. |
Scale(Single) |
Dimensionne le contrôle et ses contrôles enfants.Scales the control and any child controls. |
Scale(Single, Single) |
Dimensionne l'intégralité du contrôle et ses contrôles enfants.Scales the entire control and any child controls. |
Scale(SizeF)
Dimensionne le contrôle et tous les contrôles enfants au facteur d'échelle spécifié.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)
Paramètres
- factor
- SizeF
SizeF qui contient les facteurs d'échelle horizontale et verticale.A SizeF containing the horizontal and vertical scaling factors.
Remarques
La méthode Scale met à l’échelle le contrôle par la mise à l’échelle spécifiée factor
.The Scale method scales the control by the specified scaling factor
. Il met également à l’échelle de manière récursive tous les contrôles enfants si la propriété ScaleChildren est true
.It also recursively scales all child controls if the ScaleChildren property is true
. En interne, cette méthode appelle ScaleControl pour mettre à l’échelle chaque contrôle.Internally, this method calls ScaleControl to scale each control.
Voir aussi
Scale(Single)
Avertissement
Cette API est désormais obsolète.
Dimensionne le contrôle et ses contrôles enfants.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. https://go.microsoft.com/fwlink/?linkid=14202")]
public void Scale (float ratio);
member this.Scale : single -> unit
Public Sub Scale (ratio As Single)
Paramètres
- ratio
- Single
Rapport à utiliser pour la mise à l'échelle.The ratio to use for scaling.
- Attributs
Scale(Single, Single)
Avertissement
Cette API est désormais obsolète.
Dimensionne l'intégralité du contrôle et ses contrôles enfants.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. https://go.microsoft.com/fwlink/?linkid=14202")]
public void Scale (float dx, float dy);
member this.Scale : single * single -> unit
Public Sub Scale (dx As Single, dy As Single)
Paramètres
- dx
- Single
Facteur d'échelle horizontale.The horizontal scaling factor.
- dy
- Single
Facteur d'échelle verticale.The vertical scaling factor.
- Attributs