HeaderPane
Main
Hide
Share Link
Print

ThemeStyle Property, SftMask Object

Defines the theme style of the control (if UseThemes enabled).

Syntax

Get

C#SftMaskThemeStyleConstants Style = object.ThemeStyle;
VB.NETStyle = object.ThemeStyle As SftMaskThemeStyleConstants
C++enum SftMaskThemeStyleConstants Style = object->ThemeStyle;
enum SftMaskThemeStyleConstants Style = object->GetThemeStyle();
CHRESULT object->get_ThemeStyle(enum SftMaskThemeStyleConstants* Style);
VBStyle = object.ThemeStyle As SftMaskThemeStyleConstants

Put

C#SftMaskThemeStyleConstants object.ThemeStyle = Style;
VB.NETobject.ThemeStyle = Style As SftMaskThemeStyleConstants
C++enum SftMaskThemeStyleConstants object->ThemeStyle = Style;
void object->PutThemeStyle(enum SftMaskThemeStyleConstants Style);
CHRESULT object->put_ThemeStyle(enum SftMaskThemeStyleConstants Style);
VBobject.ThemeStyle = Style As SftMaskThemeStyleConstants

object

A SftMask object.

Style

Defines the theme style of the control (if UseThemes enabled).

NameValueDescription
themeSftMaskStrict0Strict - The BackColor and BackColorInvalid properties are not honored.
themeSftMaskBackColorOverride1Allow BackColor Override - The BackColor and BackColorInvalid properties are honored.
themeSftMaskVB6Style2VB6-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.
themeSftMaskVB6StyleBackColorOverride3VB6-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.

Comments

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


Last Updated 11/03/2026 - (email)
© 2026 Softel vdm, Inc.