Gets or sets the automatic scaling mode of the control.
Syntax
Visual Basic (Declaration) | |
---|
Public Property AutoScaleMode As System.Windows.Forms.AutoScaleMode |
C# | |
---|
public System.Windows.Forms.AutoScaleMode AutoScaleMode {get; set;} |
Property Value
An
System.Windows.Forms.AutoScaleMode that represents the current scaling mode. The default is
System.Windows.Forms.AutoScaleMode.None.
Exceptions
Exception | Description |
System.ComponentModel.InvalidEnumArgumentException | An System.Windows.Forms.AutoScaleMode value that is not valid was used to set this property. |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also