Defines whether pixel values defined by the application are scaled with the display DPI.
Class: SoftelvdmUserControl
Namespace: Softelvdm.SftDateNET.Controls
Assembly: Softelvdm.SftDateNET
public PixelScalingEnum PixelScaling { get; set; }
Public Property PixelScaling As PixelScalingEnumThe pixel scaling setting.
The default value is PixelScalingEnum.AsIs.
Defines whether pixel values defined by the application are scaled with the display DPI.
With PixelScalingEnum.Stretch, pixel values such as those defined by an application are treated as values for 96 DPI and are scaled to match the DPI of the monitor showing the control (the DeviceDpi property). Properties return the values as they were set, so a form designed at one DPI looks the same at any DPI. The SftDate and SftCalendar controls size all their parts from their fonts and the display DPI and have no properties with pixel values, so this property has no effect on them.
With PixelScalingEnum.AsIs, pixel values are used as defined, as in earlier versions.
See Also SoftelvdmUserControl Class | Classes | SftDate/NET 3.0