Gets or sets the dimensions that the control was designed to.
Syntax
Visual Basic (Declaration) | |
---|
Public Property AutoScaleDimensions As System.Drawing.SizeF |
C# | |
---|
public System.Drawing.SizeF AutoScaleDimensions {get; set;} |
Property Value
A
System.Drawing.SizeF containing the dots per inch (DPI) or
System.Drawing.Font size that the control was designed to.
Exceptions
Exception | Description |
System.ArgumentOutOfRangeException | The width or height of the System.Drawing.SizeF value is less than 0 when setting this value. |
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