HeaderPane
Main
Hide
Share Link
Print

PixelScaling Property, SftBox Object

Defines whether caller-supplied pixel dimensions are scaled to the current DPI.

Syntax

Get

C#SftBoxScalingConstants Mode = object.PixelScaling;
VB.NETMode = object.PixelScaling As SftBoxScalingConstants
C++enum SftBoxScalingConstants Mode = object->PixelScaling;
enum SftBoxScalingConstants Mode = object->GetPixelScaling();
CHRESULT object->get_PixelScaling(enum SftBoxScalingConstants* Mode);

Put

C#SftBoxScalingConstants object.PixelScaling = Mode;
VB.NETobject.PixelScaling = Mode As SftBoxScalingConstants
C++enum SftBoxScalingConstants object->PixelScaling = Mode;
void object->PutPixelScaling(enum SftBoxScalingConstants Mode);
CHRESULT object->put_PixelScaling(enum SftBoxScalingConstants Mode);

object

A SftBox object.

Mode

Defines whether caller-supplied pixel dimensions are scaled to the current DPI.

NameValueDescription
scalingSftBoxAsIs0Use caller-supplied pixel values verbatim (the default).
scalingSftBoxStretch1Scale caller-supplied pixel values by the current DPI.

Comments

The PixelScaling property defines whether caller-supplied pixel dimensions are scaled to the current DPI.

The setting covers the pixel dimensions defined by the application: column widths, the indentation, the row header width, the horizontal scrolling extent, the minimum and maximum item height and the width and height of the drop down portion (see Per-Monitor DPI and Scaling). With scalingSftBoxStretch, the values are interpreted as 96-DPI reference pixels: a column width of 100 pixels is 100 pixels at 100%, 150 pixels at 150% and 200 pixels at 200% scaling. The property values themselves do not change.

This setting is independent of ImageScaling.

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


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