Defines the theme style of the control (if UseThemes enabled).
Get
| C# | SftMaskThemeStyleConstants Style = object.ThemeStyle; |
| VB.NET | Style = object.ThemeStyle As SftMaskThemeStyleConstants |
| C++ | enum SftMaskThemeStyleConstants Style = object->ThemeStyle; enum SftMaskThemeStyleConstants Style = object->GetThemeStyle(); |
| C | HRESULT object->get_ThemeStyle(enum SftMaskThemeStyleConstants* Style); |
| VB | Style = object.ThemeStyle As SftMaskThemeStyleConstants |
Put
| C# | SftMaskThemeStyleConstants object.ThemeStyle = Style; |
| VB.NET | object.ThemeStyle = Style As SftMaskThemeStyleConstants |
| C++ | enum SftMaskThemeStyleConstants object->ThemeStyle = Style; void object->PutThemeStyle(enum SftMaskThemeStyleConstants Style); |
| C | HRESULT object->put_ThemeStyle(enum SftMaskThemeStyleConstants Style); |
| VB | object.ThemeStyle = Style As SftMaskThemeStyleConstants |
object
Style
Defines the theme style of the control (if UseThemes enabled).
| Name | Value | Description |
|---|---|---|
| themeSftMaskStrict | 0 | Strict - The BackColor and BackColorInvalid properties are not honored. |
| themeSftMaskBackColorOverride | 1 | Allow BackColor Override - The BackColor and BackColorInvalid properties are honored. |
| themeSftMaskVB6Style | 2 | VB6-Style - A disabled or locked control uses the same background color as a disabled or locked VB6 edit control. The BackColor and BackColorInvalid properties are not honored. |
| themeSftMaskVB6StyleBackColorOverride | 3 | VB6-Style, Allow BackColor Override - A disabled or locked control uses the same background color as a disabled or locked VB6 edit control. The BackColor and BackColorInvalid properties are honored. |
The ThemeStyle property defines the theme style of the control (if UseThemes enabled).
This property only takes effect if Windows themes are used and the UseThemes property is set to True.
See Also SftMask Object | Object Hierarchy