ActivityDesignerPaint.Draw3DButton Method

Definition

Draws a 3-dimensional button on the activity designer surface.

C#
public static void Draw3DButton(System.Drawing.Graphics graphics, System.Drawing.Image image, System.Drawing.Rectangle bounds, float transparency, System.Windows.Forms.ButtonState buttonState);

Parameters

graphics
Graphics

The Graphics on which to draw the 3-dimensional button.

image
Image

The Image to draw on the button.

bounds
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

The ButtonState enumeration value to specify the appearance of the button.

Exceptions

graphics contains a null reference (Nothing in Visual Basic).

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1