语言

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 包含 null 引用(Visual Basic 中的 Nothing)。

适用于