| Visual Basic (Declaration) | |
|---|---|
Sub DrawButton( _ ByVal graphics As Graphics, _ ByVal bounds As Rectangle, _ ByVal image As Image, _ ByVal isPressed As Boolean, _ ByVal isFocused As Boolean, _ ByVal isMouseOverButton As Boolean, _ ByVal enabled As Boolean, _ ByVal flat As Boolean, _ ByVal controlColors As ControlColors _ ) | |
| C# | |
|---|---|
void DrawButton( Graphics graphics, Rectangle bounds, Image image, bool isPressed, bool isFocused, bool isMouseOverButton, bool enabled, bool flat, ControlColors controlColors ) | |
Parameters
- graphics
- The Graphics object to draw on.
- bounds
- The bounds that represents the dimensions of the button.
- image
- Image for draws on button.
- isPressed
- The Button is pressed.
- isFocused
- The Button is focused.
- isMouseOverButton
- Mouse pointer is over the button.
- enabled
- The Button is enabled.
- flat
- controlColors