ButtonBase.UseVisualStyleBackColor 屬性

定義

取得或設定值,以便判斷背景是否使用視覺化樣式所繪製 (如果支援)。

public:
 property bool UseVisualStyleBackColor { bool get(); void set(bool value); };
public bool UseVisualStyleBackColor { get; set; }
member this.UseVisualStyleBackColor : bool with get, set
Public Property UseVisualStyleBackColor As Boolean

屬性值

Boolean

如果背景是使用視覺化樣式所繪製,則為 true,否則為 false

備註

視覺化樣式是控制面板的規格。 例如,視覺化樣式可以定義控制項的色彩、大小和字型,而且可讓您設定視覺介面來與應用程式介面協調。 此外,它們提供一種機制,讓所有以Windows為基礎的應用程式套用視覺化樣式。

適用於