Provides methods used to render a group box control with or without visual styles. This class cannot be inherited.
See Also: GroupBoxRenderer Members
The System.Windows.Forms.GroupBoxRenderer class provides a set of static methods that can be used to render a group box control. Rendering a control refers to drawing the user interface of a control. To draw a group box, use one of the erload:System.Windows.Forms.GroupBoxRenderer.DrawGroupBox methods. These methods provide a variety of text drawing options.
If visual styles are enabled in the operating system and visual styles are applied to the current application, erload:System.Windows.Forms.GroupBoxRenderer.DrawGroupBox will draw the group box with the current visual style. Otherwise, erload:System.Windows.Forms.GroupBoxRenderer.DrawGroupBox will draw the group box 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 System.Windows.Forms.VisualStyles.VisualStyleRenderer that is set to one of the elements exposed by the System.Windows.Forms.VisualStyles.VisualStyleElement.Button.GroupBox class. For more information, see Rendering Controls with Visual Styles.