Draws a button control in the specified state, on the specified graphics surface, and within the specified bounds.
| C# | Visual Basic |
public static void DrawButton( Graphics graphics, Rectangle rectangle, ButtonState state )
Public Shared Sub DrawButton ( _ graphics As Graphics, _ rectangle As Rectangle, _ state As ButtonState _ )
- rectangle (Rectangle)
- The Rectangle that represents the dimensions of the button.
- state (ButtonState)
- A bitwise combination of the ButtonState values that specifies the state to draw the button in.