22 references to DeviceDpi
System.Windows.Forms (22)
winforms\Managed\System\WinForms\Control.cs (3)
7735
return DpiHelper.LogicalToDeviceUnits(value,
DeviceDpi
);
7745
return DpiHelper.LogicalToDeviceUnits(value,
DeviceDpi
);
7754
DpiHelper.ScaleBitmapLogicalToDevice(ref logicalBitmap,
DeviceDpi
);
winforms\Managed\System\WinForms\MenuStrip.cs (4)
81
DpiHelper.LogicalToDeviceUnits(new Padding(2, 2, 0, 2),
DeviceDpi
) :
90
DpiHelper.LogicalToDeviceUnits(new Size(200, 24),
DeviceDpi
) :
101
DpiHelper.LogicalToDeviceUnits(new Padding(3, 2, 0, 2),
DeviceDpi
) :
105
DpiHelper.LogicalToDeviceUnits(new Padding(6, 2, 0, 2),
DeviceDpi
) :
winforms\Managed\System\WinForms\PropertyGrid.cs (2)
2013
button.DeviceDpi =
DeviceDpi
;
2100
button.DeviceDpi =
DeviceDpi
;
winforms\Managed\System\WinForms\ToolStrip.cs (8)
181
ToolStripManager.CurrentDpi =
DeviceDpi
;
183
iconWidth = DpiHelper.LogicalToDeviceUnits(ICON_DIMENSION,
DeviceDpi
);
184
iconHeight = DpiHelper.LogicalToDeviceUnits(ICON_DIMENSION,
DeviceDpi
);
185
insertionBeamWidth = DpiHelper.LogicalToDeviceUnits(INSERTION_BEAM_WIDTH,
DeviceDpi
);
186
scaledDefaultPadding = DpiHelper.LogicalToDeviceUnits(defaultPadding,
DeviceDpi
);
187
scaledDefaultGripMargin = DpiHelper.LogicalToDeviceUnits(defaultGripMargin,
DeviceDpi
);
654
DpiHelper.LogicalToDeviceUnits(new Size(100, 25),
DeviceDpi
) :
3303
ToolStripManager.CurrentDpi =
DeviceDpi
;
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (5)
140
ScaleObjectSizesIfNeeded(e.ToolStrip.
DeviceDpi
);
414
ScaleObjectSizesIfNeeded(toolStrip.
DeviceDpi
);
429
ScaleObjectSizesIfNeeded(e.ToolStrip.
DeviceDpi
);
608
ScaleObjectSizesIfNeeded(e.ToolStrip.
DeviceDpi
);
1010
ScaleObjectSizesIfNeeded(e.ToolStrip.
DeviceDpi
);