ActivityDesignerPaint.Draw3DButton 方法

定義

在活動設計器表面繪製一個三維按鈕。

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

就是 Graphics 畫立體按鈕的那個。

image
Image

Image 按鈕上畫畫。

bounds
Rectangle

Rectangle 個定義了按鈕的邊界。

transparency
Single

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

buttonState
ButtonState

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

例外狀況

graphics 包含一個空參考(Nothing 在 Visual Basic 中)。

適用於