HeaderPane
Main
Hide

SftTree/OCX 8.0 - ActiveX Tree Control

Share Link
Print

DPI Property, SftTree Object

Returns the effective DPI for the control's current monitor.

Syntax

Get

VB.NETDPI = object.DPI As Integer
VBDPI = object.DPI As Long
C#.NETint DPI = object.DPI;
VC++long DPI = object->DPI;
long DPI = object->GetDPI();
CHRESULT object->get_DPI(long* DPI);

object

A SftTree object.

DPI

Returns the effective DPI for the control's current monitor.

Comments

The DPI property returns the effective DPI for the control's current monitor.

On a per-monitor DPI-aware host, the value changes when the control moves to a monitor with a different DPI; the DPIChanged event is raised when this happens. A value of 96 corresponds to 100% scaling.

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


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