29 references to LogicalToDeviceUnits
System.Windows.Forms (29)
misc\DpiHelper.cs (4)
536
return
LogicalToDeviceUnits
(value, 0);
547
return
LogicalToDeviceUnits
(value, 0);
558
return new Size(
LogicalToDeviceUnits
(logicalSize.Width, deviceDpi),
559
LogicalToDeviceUnits
(logicalSize.Height, deviceDpi));
winforms\Managed\System\WinForms\Control.cs (1)
7735
return DpiHelper.
LogicalToDeviceUnits
(value, DeviceDpi);
winforms\Managed\System\WinForms\DataGridViewColumn.cs (1)
88
return DpiHelper.EnableDataGridViewControlHighDpiImprovements ? DpiHelper.
LogicalToDeviceUnits
(value) : value;
winforms\Managed\System\WinForms\ToolStrip.cs (6)
183
iconWidth = DpiHelper.
LogicalToDeviceUnits
(ICON_DIMENSION, DeviceDpi);
184
iconHeight = DpiHelper.
LogicalToDeviceUnits
(ICON_DIMENSION, DeviceDpi);
185
insertionBeamWidth = DpiHelper.
LogicalToDeviceUnits
(INSERTION_BEAM_WIDTH, DeviceDpi);
3922
iconWidth = DpiHelper.
LogicalToDeviceUnits
(ICON_DIMENSION, newDpi);
3923
iconHeight = DpiHelper.
LogicalToDeviceUnits
(ICON_DIMENSION, newDpi);
3924
insertionBeamWidth = DpiHelper.
LogicalToDeviceUnits
(INSERTION_BEAM_WIDTH, newDpi);
winforms\Managed\System\WinForms\ToolStripButton.cs (1)
194
standardButtonWidth = DpiHelper.
LogicalToDeviceUnits
(STANDARD_BUTTON_WIDTH, DeviceDpi);
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (3)
609
scaledDefaultImageMarginWidth = DpiHelper.
LogicalToDeviceUnits
(DefaultImageMarginWidth, newDpi) + 1; // 1px for border
610
scaledDefaultImageAndCheckMarginWidth = DpiHelper.
LogicalToDeviceUnits
(DefaultImageAndCheckMarginWidth, newDpi) + 1; // 1px for border
616
scaledArrowSize = DpiHelper.
LogicalToDeviceUnits
(ArrowSize, newDpi);
winforms\Managed\System\WinForms\ToolStripGrip.cs (2)
244
scaledGripThickness = DpiHelper.
LogicalToDeviceUnits
(gripThicknessDefault, newDpi);
245
scaledGripThicknessVisualStylesEnabled = DpiHelper.
LogicalToDeviceUnits
(gripThicknessVisualStylesEnabled, newDpi);
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (7)
1405
overflowButtonWidth = DpiHelper.
LogicalToDeviceUnits
(OVERFLOW_BUTTON_WIDTH, currentDeviceDpi);
1406
overflowArrowWidth = DpiHelper.
LogicalToDeviceUnits
(OVERFLOW_ARROW_WIDTH, currentDeviceDpi);
1407
overflowArrowHeight = DpiHelper.
LogicalToDeviceUnits
(OVERFLOW_ARROW_HEIGHT, currentDeviceDpi);
1408
overflowArrowOffsetY = DpiHelper.
LogicalToDeviceUnits
(OVERFLOW_ARROW_OFFSETY, currentDeviceDpi);
1410
gripPadding = DpiHelper.
LogicalToDeviceUnits
(GRIP_PADDING, currentDeviceDpi);
1411
iconWellGradientWidth = DpiHelper.
LogicalToDeviceUnits
(ICON_WELL_GRADIENT_WIDTH, currentDeviceDpi);
1412
int scaledSize = DpiHelper.
LogicalToDeviceUnits
(DROP_DOWN_MENU_ITEM_PAINT_PADDING_SIZE, currentDeviceDpi);
winforms\Managed\System\WinForms\ToolStripRenderer.cs (4)
694
Offset2X = DpiHelper.
LogicalToDeviceUnits
(OFFSET_2PIXELS, dpi);
695
Offset2Y = DpiHelper.
LogicalToDeviceUnits
(OFFSET_2PIXELS, dpi);
696
offset4X = DpiHelper.
LogicalToDeviceUnits
(OFFSET_4PIXELS, dpi);
697
offset4Y = DpiHelper.
LogicalToDeviceUnits
(OFFSET_4PIXELS, dpi);