System.Windows.Forms
2.0.0.0
System.Object
The class provides a set of static methods that can be used to render a button control. Rendering a control refers to drawing the user interface of a control. To draw a button, use one of the methods. These methods provide a variety of options, such as drawing text or an image on the button.
If visual styles are enabled in the operating system and visual styles are applied to the current application, will draw the button with the current visual style. Otherwise, will draw the button with the classic Windows style. This is useful if you are drawing a custom control that should automatically match the current visual style setting of the operating system.
This class wraps the functionality of a that is set to one of the elements exposed by the class. For more information, see Rendering Controls with Visual Styles.
Provides methods used to render a button control with or without visual styles. This class cannot be inherited.
Method
System.Void
If visual styles are enabled in the operating system and visual styles are applied to the current application, this method will draw the button with the current visual style. Otherwise, it will draw the button with the classic Windows style.
Draws a button control in the specified state and bounds.
The used to draw the button.
The that specifies the bounds of the button.
One of the values that specifies the visual state of the button.
2.0.0.0
Method
System.Void
If visual styles are enabled in the operating system and visual styles are applied to the current application, this method will draw the button with the current visual style. Otherwise, it will draw the button with the classic Windows style.
Draws a button control in the specified state and bounds, and with an optional focus rectangle.
The used to draw the button.
The that specifies the bounds of the button.
true to draw a focus rectangle on the button; otherwise, false.
One of the values that specifies the visual state of the button.
2.0.0.0
Method
System.Void
If visual styles are enabled in the operating system and visual styles are applied to the current application, this method will draw the button with the current visual style. Otherwise, it will draw the button with the classic Windows style.
Draws a button control in the specified state and bounds, with the specified image, and with an optional focus rectangle.
The used to draw the button.
The that specifies the bounds of the button.
The to draw on the button.
The that represents the dimensions of .
true to draw a focus rectangle on the button; otherwise, false.
One of the values that specifies the visual state of the button.
2.0.0.0
Method
System.Void
If visual styles are enabled in the operating system and visual styles are applied to the current application, this method will draw the button with the current visual style. Otherwise, it will draw the button with the classic Windows style.
Draws a button control in the specified state and bounds, with the specified text, and with an optional focus rectangle.
The used to draw the button.
The that specifies the bounds of the button.
The to draw on the button.
The to apply to .
true to draw a focus rectangle on the button; otherwise, false.
One of the values that specifies the visual state of the button.
2.0.0.0
Method
System.Void
If visual styles are enabled in the operating system and visual styles are applied to the current application, this method will draw the button with the current visual style. Otherwise, it will draw the button with the classic Windows style.
Draws a button control in the specified state and bounds, with the specified text and text formatting, and with an optional focus rectangle.
The used to draw the button.
The that specifies the bounds of the button.
The to draw on the button.
The to apply to .
A bitwise combination of the values to apply to .
true to draw a focus rectangle on the button; otherwise, false.
One of the values that specifies the visual state of the button.
2.0.0.0
Method
System.Void
If visual styles are enabled in the operating system and visual styles are applied to the current application, this method will draw the button with the current visual style. Otherwise, it will draw the button with the classic Windows style.
Draws a button control in the specified state and bounds, with the specified text and image, and with an optional focus rectangle.
The used to draw the button.
The that specifies the bounds of the button.
The to draw on the button.
The to apply to .
The to draw on the button.
The that represents the dimensions of .
true to draw a focus rectangle on the button; otherwise, false.
One of the values that specifies the visual state of the button.
2.0.0.0
Method
System.Void
If visual styles are enabled in the operating system and visual styles are applied to the current application, this method will draw the button with the current visual style. Otherwise, it will draw the button with the classic Windows style.
Draws a button control in the specified state and bounds; with the specified text, text formatting, and image; and with an optional focus rectangle.
The used to draw the button.
The that specifies the bounds of the button.
The to draw on the button.
The to apply to .
A bitwise combination of the values to apply to .
The to draw on the button.
The that represents the dimensions of .
true to draw a focus rectangle on the button; otherwise, false.
One of the values that specifies the visual state of the button.
2.0.0.0
Method
System.Void
To be added.
Draws the background of a control's parent in the specified area.
The used to draw the background of the parent of .
The in which to draw the parent control's background. This rectangle should be inside the child control’s bounds.
The control whose parent's background will be drawn.
2.0.0.0
Method
System.Boolean
To be added.
Indicates whether the background of the button has semitransparent or alpha-blended pieces.
true if the background of the button has semitransparent or alpha-blended pieces; otherwise, false.
One of the values that specifies the visual state of the button.
2.0.0.0
Property
System.Boolean
To be added.
If the property is true, the uses the setting from the property to determine the rendering style. If is false, the renderer will always render using visual styles.
Gets or sets a value indicating whether the renderer uses the application state to determine rendering style.
2.0.0.0