ButtonBase.UseVisualStyleBackColor 屬性

定義

取得或設定值,以便判斷背景是否使用視覺化樣式所繪製 (如果支援)。Gets or sets a value that determines if the background is drawn using visual styles, if supported.

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,否則為 falsetrue if the background is drawn using visual styles; otherwise, false.

備註

視覺化樣式是控制面板的規格。Visual styles are specifications for the appearance of controls. 例如,視覺效果樣式可以定義控制項的色彩、大小和字型,並可讓您設定視覺化介面來與您的應用程式介面進行協調。For example, visual styles can define the color, size, and font of controls, and they enable you to configure the visual interface to coordinate with your application interface. 此外,它們還提供一種機制,讓所有以 Windows 為基礎的應用程式都套用視覺效果樣式。Additionally, they provide a mechanism for all Windows-based applications to have visual styles applied.

適用於