Form.AutoScaleBaseSize Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the base size used for autoscaling of the form.
public:
virtual property System::Drawing::Size AutoScaleBaseSize { System::Drawing::Size get(); void set(System::Drawing::Size value); };
[System.ComponentModel.Browsable(false)]
public virtual System.Drawing.Size AutoScaleBaseSize { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.AutoScaleBaseSize : System.Drawing.Size with get, set
Public Overridable Property AutoScaleBaseSize As Size
Property Value
A Size that represents the base size that this form uses for autoscaling.
- Attributes
Remarks
Important
This member has been retained for backward compatibility. For more information about automatic scaling, see Automatic Scaling in Windows Forms.
The value of the AutoScaleBaseSize property is used at form-display time to compute the scaling factor for the form. The autoscaling base size is used by the form as a baseline for comparison to the system's font size to determine how much to scale the form when autoscaling is used. If you want to determine the size a form will auto scale to based on a specific font, use the GetAutoScaleSize method.
Note
The value of this property is used when the form is initially created. Once the property is set, it cannot be changed.
Applies to
See also
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour