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