VisualStyleHelper Class
Provides helper methods for working with visual styles. Unlike the public members of the
VisualStyleRenderer class,
it supports high-DPI or custom themed styles (e.g. Windows 10+ dark theme), newer theme classes (e.g. DatePicker), and some additional visual style values, such as font properties.
Namespace: KGySoft.WinFormsAssembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
public static class VisualStyleHelper
Public NotInheritable Class VisualStyleHelper
public ref class VisualStyleHelper abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type VisualStyleHelper = class end
- Inheritance
- Object VisualStyleHelper
| HighContrast |
Gets a cached value indicating whether the operating system uses high contrast colors.
|
| RenderWithVisualStyles |
Gets a cached value indicating whether visual styles are available.
|
| GetFont |
Gets the font of a visual style element, or , if no font is defined for the specified class and part.
|
| GetPartSize |
Gets the part size of a themed element.
|
| GetTextColor |
Gets the color of a themed element, or defaultColor, if no color is defined for the specified class, part and state.
|
| Render |
Renders the visual style element of the specified class, part and state to the specified device context.
|
| RenderScaled |
Renders the visual style element of the specified class, part and state by scaling the actual glyph
to the desired size specified in the bounds parameter.
|