ActivityDesignerPaint.Draw3DButton(Graphics, Image, Rectangle, Single, ButtonState) 方法

定義

在活動設計工具介面上繪製 3D 按鈕。Draws a 3-dimensional button on the activity designer surface.

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

參數

graphics
Graphics

要在其上繪製 3D 按鈕的 GraphicsThe Graphics on which to draw the 3-dimensional button.

image
Image

在按鈕上繪製的 ImageThe Image to draw on the button.

bounds
Rectangle

Rectangle ,定義按鈕界限。The Rectangle that defines the bounds of the button.

transparency
Single

用來指定按鈕透明程度的單精確度浮點數。The single-precision floating-point number to specify the transparency level of the button.

buttonState
ButtonState

用來指定按鈕外觀的 ButtonState 列舉值。The ButtonState enumeration value to specify the appearance of the button.

例外狀況

graphics 包含 null 參考 (在 Visual Basic 中為 Nothing)。graphics contains a null reference (Nothing in Visual Basic).

適用於