共用方式為


ButtonRenderer.IsBackgroundPartiallyTransparent(PushButtonState) 方法

定義

指出按鈕的背景是否有半透明或 Alpha 混色的片段。

public:
 static bool IsBackgroundPartiallyTransparent(System::Windows::Forms::VisualStyles::PushButtonState state);
public static bool IsBackgroundPartiallyTransparent (System.Windows.Forms.VisualStyles.PushButtonState state);
static member IsBackgroundPartiallyTransparent : System.Windows.Forms.VisualStyles.PushButtonState -> bool
Public Shared Function IsBackgroundPartiallyTransparent (state As PushButtonState) As Boolean

參數

state
PushButtonState

PushButtonState 的其中一個值,指定按鈕的可見狀態。

傳回

如果按鈕的背景有半透明或 Alpha 混色的片段,則為 true,否則為 false

適用於