HeaderPane
Main
Hide
Share Link
Print

HighContrastMode Property, SftButton Object

Defines the high contrast setting (off, on, or following the Windows setting).

Syntax

Get

C#SftButtonHighContrastConstants Mode = object.HighContrastMode;
VB.NETMode = object.HighContrastMode As SftButtonHighContrastConstants
C++enum SftButtonHighContrastConstants Mode = object->HighContrastMode;
enum SftButtonHighContrastConstants Mode = object->GetHighContrastMode();
CHRESULT object->get_HighContrastMode(enum SftButtonHighContrastConstants* Mode);
VBMode = object.HighContrastMode As SftButtonHighContrastConstants

Put

C#SftButtonHighContrastConstants object.HighContrastMode = Mode;
VB.NETobject.HighContrastMode = Mode As SftButtonHighContrastConstants
C++enum SftButtonHighContrastConstants object->HighContrastMode = Mode;
void object->PutHighContrastMode(enum SftButtonHighContrastConstants Mode);
CHRESULT object->put_HighContrastMode(enum SftButtonHighContrastConstants Mode);
VBobject.HighContrastMode = Mode As SftButtonHighContrastConstants

object

A SftButton object.

Mode

Defines the high contrast setting (off, on, or following the Windows setting).

NameValueDescription
highContrastSftButtonOff0Ignore the Windows High Contrast setting and render normally.
highContrastSftButtonOn1Always use the system palette.
highContrastSftButtonAuto2Follow the Windows High Contrast setting (the default).

Comments

The HighContrastMode property defines the high contrast setting (off, on, or following the Windows setting).

When set to highContrastSftButtonAuto, the control follows the Windows High Contrast accessibility setting and re-renders automatically; the HighContrastChange event is raised when the effective state changes.

Use HighContrastActive to determine whether high contrast is currently active.

See Also SftButton Object | Object Hierarchy | High Contrast


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