ActivityDesignerPaint.Draw3DButton 方法

定義

在活動設計工具介面上繪製 3D 按鈕。

public:
 static void Draw3DButton(System::Drawing::Graphics ^ graphics, System::Drawing::Image ^ image, System::Drawing::Rectangle bounds, float transparency, System::Windows::Forms::ButtonState buttonState);
public static void Draw3DButton (System.Drawing.Graphics graphics, System.Drawing.Image image, System.Drawing.Rectangle bounds, float transparency, System.Windows.Forms.ButtonState buttonState);
static member Draw3DButton : System.Drawing.Graphics * System.Drawing.Image * System.Drawing.Rectangle * single * System.Windows.Forms.ButtonState -> unit
Public Shared Sub Draw3DButton (graphics As Graphics, image As Image, bounds As Rectangle, transparency As Single, buttonState As ButtonState)

參數

graphics
Graphics

要在其上繪製 3D 按鈕的 Graphics

image
Image

在按鈕上繪製的 Image

bounds
Rectangle

Rectangle ,定義按鈕界限。

transparency
Single

用來指定按鈕透明程度的單精確度浮點數。

buttonState
ButtonState

用來指定按鈕外觀的 ButtonState 列舉值。

例外狀況

graphics 包含 null 參考 (在 Visual Basic 中為 Nothing)。

適用於