Provides methods used to render a check box control with or without visual styles. This class cannot be inherited.
See Also: CheckBoxRenderer Members
The System.Windows.Forms.CheckBoxRenderer class provides a set of static methods that can be used to render a check box control. Rendering a control refers to drawing the user interface of a control. To draw a check box, use one of the erload:System.Windows.Forms.CheckBoxRenderer.DrawCheckBox methods. These methods provide a variety of options, such as drawing text or an image with the check box.
If visual styles are enabled in the operating system and visual styles are applied to the current application, erload:System.Windows.Forms.CheckBoxRenderer.DrawCheckBox will draw the check box with the current visual style. Otherwise, erload:System.Windows.Forms.CheckBoxRenderer.DrawCheckBox will draw the check 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.CheckBox class. For more information, see Rendering Controls with Visual Styles.