Provides methods used to paint common Windows controls and their elements.
| C# | Visual Basic |
public static class ControlPaint
Public NotInheritable Class ControlPaint
| All Members | Methods | ||||
| Icon | Member | Description |
|---|---|---|
| Dark(Color) |
Creates a new dark color object for the control from the specified color.
| |
| Dark(Color, Single) |
Creates a new dark color object for the control from the specified color and darkens it by the specified percentage.
| |
| DarkDark(Color) |
Creates a new dark color object for the control from the specified color.
| |
| DrawButton(Graphics, Rectangle, ButtonState) |
Draws a button control in the specified state, on the specified graphics surface, and within the specified bounds.
| |
| DrawCaptionButton(Graphics, Rectangle, CaptionButton, ButtonState) |
Draws a caption button control.
| |
| DrawCheckBox(Graphics, Rectangle, ButtonState) |
Draws a check box control.
| |
| DrawFocusRectangle(Graphics, Rectangle) |
Draws a focus rectangle on the specified graphics surface and within the specified bounds.
| |
| DrawRadioButton(Graphics, Rectangle, ButtonState) |
Draws a radio button control.
| |
| DrawScrollButton(Graphics, Rectangle, ScrollButton, ButtonState) |
Draws a scroll button on a scroll bar control.
| |
| Light(Color) |
Creates a new light color object for the control from the specified color.
| |
| Light(Color, Single) |
Creates a new light color object for the control from the specified color and lightens it by the specified percentage.
| |
| LightLight(Color) |
Creates a new light color object for the control from the specified color.
|
Equivalent to System.Windows.Forms.ControlPaint
The methods contained in the ControlPaint class enable you to draw your own controls or elements of controls.| Object | |
| ControlPaint | |