請注意:這個屬性現在已經過時。 尚未過時的替代項目為 AutoScaleMode。
取得或設定值,指出表單是否要調整大小以配合表單上所使用的字型高度,並且縮放它的控制項。
命名空間: System.Windows.Forms
組件: System.Windows.Forms (在 system.windows.forms.dll 中)
<ObsoleteAttribute("This property has been deprecated. Use the AutoScaleMode property instead. http://go.microsoft.com/fwlink/?linkid=14202")> _
Public Property AutoScale As Boolean
Dim instance As Form
Dim value As Boolean
value = instance.AutoScale
instance.AutoScale = value
[ObsoleteAttribute("This property has been deprecated. Use the AutoScaleMode property instead. http://go.microsoft.com/fwlink/?linkid=14202")]
public bool AutoScale { get; set; }
[ObsoleteAttribute(L"This property has been deprecated. Use the AutoScaleMode property instead. http://go.microsoft.com/fwlink/?linkid=14202")]
public:
property bool AutoScale {
bool get ();
void set (bool value);
}
/** @property */
public boolean get_AutoScale ()
/** @property */
public void set_AutoScale (boolean value)
public function get AutoScale () : boolean
public function set AutoScale (value : boolean)
屬性值
如果表單根據指派給表單的字型自動縮放自已和它的控制項,則為 true,否則為 false。預設為 true。
您可以使用這個屬性允許表單和它的控制項根據字型的變更自動調整。這其中對字型可能因指定給 Windows 使用的語言增加或減少的應用程式而言,可能很有用處。
若要取得表單將會自動縮放的大小,請使用 AutoScaleBaseSize 屬性。如果您想要決定表單將根據特定字型自動縮放的大小,請使用 GetAutoScaleSize 方法。
Windows 98、 Windows 2000 SP4、 Windows CE、 Windows Millennium Edition、 Windows Mobile for Pocket PC、 Windows Mobile for Smartphone、 Windows Server 2003、 Windows XP Media Center Edition、 Windows XP Professional x64 Edition、 Windows XP SP2、 Windows XP Starter Edition
.NET Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱系統需求一節的內容。
.NET Framework
支援版本:1.0、1.1
在 2.0 中已過時 (編譯器警告)