WindowsFormsApplicationBase.EnableVisualStyles 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷此應用程式是否會使用 Windows XP 的視窗、控制項等樣式。
protected:
property bool EnableVisualStyles { bool get(); void set(bool value); };
protected bool EnableVisualStyles { get; set; }
member this.EnableVisualStyles : bool with get, set
Protected Property EnableVisualStyles As Boolean
屬性值
一個 Boolean 值,表示此應用程式是否會使用 XP Windows 樣式來管理windows、控制項等。
備註
該 OnInitialize 方法利用此特性來判斷是否要呼叫 EnableVisualStyles。