HeaderPane
Main
Hide

SftTree/OCX 8.0 - ActiveX Tree Control

Share Link
Print

HighContrastMode Property, SftTree Object

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

Syntax

Get

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

Put

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

object

A SftTree object.

Mode

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

NameValueDescription
highContrastSftTreeOff0Ignore the Windows High Contrast setting and render normally (the default).
highContrastSftTreeOn1Always use the system palette.
highContrastSftTreeAuto2Follow the Windows High Contrast setting.

Comments

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

When set to highContrastSftTreeAuto, 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 SftTree Object | Object Hierarchy | High Contrast


Last Updated 05/24/2026 - (email)
© 2026 Softel vdm, Inc.