Defines whether caller-supplied pixel dimensions are scaled to the current DPI.
Get
| C# | SftBoxScalingConstants Mode = object.PixelScaling; |
| VB.NET | Mode = object.PixelScaling As SftBoxScalingConstants |
| C++ | enum SftBoxScalingConstants Mode = object->PixelScaling; enum SftBoxScalingConstants Mode = object->GetPixelScaling(); |
| C | HRESULT object->get_PixelScaling(enum SftBoxScalingConstants* Mode); |
Put
| C# | SftBoxScalingConstants object.PixelScaling = Mode; |
| VB.NET | object.PixelScaling = Mode As SftBoxScalingConstants |
| C++ | enum SftBoxScalingConstants object->PixelScaling = Mode; void object->PutPixelScaling(enum SftBoxScalingConstants Mode); |
| C | HRESULT object->put_PixelScaling(enum SftBoxScalingConstants Mode); |
object
Mode
Defines whether caller-supplied pixel dimensions are scaled to the current DPI.
| Name | Value | Description |
|---|---|---|
| scalingSftBoxAsIs | 0 | Use caller-supplied pixel values verbatim (the default). |
| scalingSftBoxStretch | 1 | Scale caller-supplied pixel values by the current DPI. |
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