Defines whether Windows themes can be used.
Get
| VB.NET | Style = object.UseThemes As SftButtonThemesConstants |
| VB | Style = object.UseThemes As SftButtonThemesConstants |
| C#.NET | SftButtonThemesConstants Style = object.UseThemes; |
| VC++ | enum SftButtonThemesConstants Style = object->UseThemes; enum SftButtonThemesConstants Style = object->GetUseThemes(); |
| C | HRESULT object->get_UseThemes(enum SftButtonThemesConstants* Style); |
Put
| VB.NET | object.UseThemes = Style As SftButtonThemesConstants |
| VB | object.UseThemes = Style As SftButtonThemesConstants |
| C#.NET | SftButtonThemesConstants object.UseThemes = Style; |
| VC++ | enum SftButtonThemesConstants object->UseThemes = Style; void object->PutUseThemes(enum SftButtonThemesConstants Style); |
| C | HRESULT object->put_UseThemes(enum SftButtonThemesConstants Style); |
object
Style
Defines whether Windows themes can be used.
| Name | Value | Description |
|---|---|---|
| themesSftButtonNo | 0 | Windows themes are never used. |
| themesSftButtonYes | 1 | Windows themes are used if available. |
| themesSftButtonYesExcludeText | 2 | Windows themes are used if available. The button's caption (Text) is rendered using the defined colors and themes are ignored. Themes are only used for the button background. |
The UseThemes property defines whether Windows themes can be used.
See Also SftButton Object | Object Hierarchy