Form.GetAutoScaleSize(Font) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Attention
This method has been deprecated. Use the AutoScaleDimensions property instead. http://go.microsoft.com/fwlink/?linkid=14202
Attention
This method has been deprecated. Use the AutoScaleDimensions property instead. https://go.microsoft.com/fwlink/?linkid=14202
Obtient la taille lors de la mise à l’échelle automatique du formulaire en fonction d’une police spécifiée.
public:
static System::Drawing::SizeF GetAutoScaleSize(System::Drawing::Font ^ font);
public static System.Drawing.SizeF GetAutoScaleSize(System.Drawing.Font font);
[System.Obsolete("This method has been deprecated. Use the AutoScaleDimensions property instead. http://go.microsoft.com/fwlink/?linkid=14202")]
public static System.Drawing.SizeF GetAutoScaleSize(System.Drawing.Font font);
[System.Obsolete("This method has been deprecated. Use the AutoScaleDimensions property instead. https://go.microsoft.com/fwlink/?linkid=14202")]
public static System.Drawing.SizeF GetAutoScaleSize(System.Drawing.Font font);
static member GetAutoScaleSize : System.Drawing.Font -> System.Drawing.SizeF
[<System.Obsolete("This method has been deprecated. Use the AutoScaleDimensions property instead. http://go.microsoft.com/fwlink/?linkid=14202")>]
static member GetAutoScaleSize : System.Drawing.Font -> System.Drawing.SizeF
[<System.Obsolete("This method has been deprecated. Use the AutoScaleDimensions property instead. https://go.microsoft.com/fwlink/?linkid=14202")>]
static member GetAutoScaleSize : System.Drawing.Font -> System.Drawing.SizeF
Public Shared Function GetAutoScaleSize (font As Font) As SizeF
Paramètres
- font
- Font
Représentant Font la police pour déterminer la taille de base mise à l’échelle automatique du formulaire.
Retours
Représentant SizeF la taille automatiquement mise à l’échelle du formulaire.
- Attributs
Remarques
Important
La GetAutoScaleSize méthode est obsolète. Ce membre a été conservé pour la compatibilité descendante. Pour plus d’informations sur la mise à l’échelle automatique, consultez Mise à l’échelle automatique dans Windows Forms.
Vous pouvez utiliser cette méthode pour déterminer la taille d’un formulaire à mettre automatiquement à l’échelle pour une police spécifique avant d’appliquer la police au formulaire. Si vous souhaitez déterminer la taille d’un formulaire est automatiquement mise à l’échelle en fonction de la police actuellement affectée au formulaire, utilisez la AutoScaleBaseSize propriété.