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 包含空引用(在 Visual Basic 中为 Nothing)。

适用于