HeaderPane
Main
Hide

SftTree/OCX 8.0 - ActiveX Tree Control

Share Link
Print

ImageScaling Property, SftTree Object

Defines whether the control's images are scaled to the current DPI.

Syntax

Get

VB.NETMode = object.ImageScaling As SftTreeScalingConstants
VBMode = object.ImageScaling As SftTreeScalingConstants
C#.NETSftTreeScalingConstants Mode = object.ImageScaling;
VC++enum SftTreeScalingConstants Mode = object->ImageScaling;
enum SftTreeScalingConstants Mode = object->GetImageScaling();
CHRESULT object->get_ImageScaling(enum SftTreeScalingConstants* Mode);

Put

VB.NETobject.ImageScaling = Mode As SftTreeScalingConstants
VBobject.ImageScaling = Mode As SftTreeScalingConstants
C#.NETSftTreeScalingConstants object.ImageScaling = Mode;
VC++enum SftTreeScalingConstants object->ImageScaling = Mode;
void object->PutImageScaling(enum SftTreeScalingConstants Mode);
CHRESULT object->put_ImageScaling(enum SftTreeScalingConstants Mode);

object

A SftTree object.

Mode

Defines whether the control's images are scaled to the current DPI.

NameValueDescription
scalingSftTreeAsIs0Draw every image at its native pixel size (the default).
scalingSftTreeStretch1Scale every image by the current DPI.

Comments

The ImageScaling property defines whether the control's images are scaled to the current DPI.

This setting is independent of PixelScaling.

See Also SftTree Object | Object Hierarchy | Per-Monitor DPI and Scaling


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