56 references to LogicalToDeviceUnits
System.Windows.Forms (56)
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxStandardAdapter.cs (1)
120
layout.checkSize = Control.
LogicalToDeviceUnits
(layout.checkSize);
winforms\Managed\System\WinForms\CheckBox.cs (4)
74
flatSystemStylePaddingWidth =
LogicalToDeviceUnits
(FlatSystemStylePaddingWidth);
75
flatSystemStyleMinimumHeight =
LogicalToDeviceUnits
(FlatSystemStyleMinimumHeight);
363
flatSystemStylePaddingWidth =
LogicalToDeviceUnits
(FlatSystemStylePaddingWidth);
364
flatSystemStyleMinimumHeight =
LogicalToDeviceUnits
(FlatSystemStyleMinimumHeight);
winforms\Managed\System\WinForms\ComboBox.cs (1)
5928
Offset2Pixels = comboBox.
LogicalToDeviceUnits
(OFFSET_2PIXELS);
winforms\Managed\System\WinForms\DataGridView.cs (1)
542
return DpiHelper.EnableDataGridViewControlHighDpiImprovements ?
LogicalToDeviceUnits
(value) : value;
winforms\Managed\System\WinForms\ListBox.cs (3)
178
scaledListItemStartPosition =
LogicalToDeviceUnits
(defaultListItemStartPos);
182
scaledListItemBordersHeight = 2 *
LogicalToDeviceUnits
(defaultListItemBorderHeight);
183
scaledListItemPaddingBuffer =
LogicalToDeviceUnits
(defaultListItemPaddingBuffer);
winforms\Managed\System\WinForms\MonthCalendar.cs (1)
255
scaledExtraPadding =
LogicalToDeviceUnits
(ExtraPadding);
winforms\Managed\System\WinForms\PropertyGrid.cs (2)
4840
cyDivider =
LogicalToDeviceUnits
(CYDIVIDER);
4841
toolStripButtonPaddingY =
LogicalToDeviceUnits
(TOOLSTRIP_BUTTON_PADDING_Y);
winforms\Managed\System\WinForms\PropertyGridInternal\DocComment.cs (8)
56
cBorder =
LogicalToDeviceUnits
(CBORDER);
57
cydef =
LogicalToDeviceUnits
(CYDEF);
94
var padding = DpiHelper.EnableDpiChangedHighDpiImprovements ?
LogicalToDeviceUnits
(2) : 2;
96
return Math.Max(height + 2 * padding, DpiHelper.EnableDpiChangedHighDpiImprovements ?
LogicalToDeviceUnits
(CYDEF) : CYDEF);
123
lineHeight = (int)Font.Height +
LogicalToDeviceUnits
(2);
156
Math.Max(0, size.Height - lineHeight - (DpiHelper.EnableDpiChangedHighDpiImprovements ?
LogicalToDeviceUnits
(1) : 1)),
173
cBorder =
LogicalToDeviceUnits
(CBORDER);
174
cydef =
LogicalToDeviceUnits
(CYDEF);
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (1)
169
return this.GridEntryHost.
LogicalToDeviceUnits
(OUTLINE_ICON_PADDING);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (8)
1108
scaledIconWidth =
LogicalToDeviceUnits
(width);
1109
scaledIconHeight =
LogicalToDeviceUnits
(height);
5413
paintWidth =
LogicalToDeviceUnits
(PAINT_WIDTH);
5414
paintIndent =
LogicalToDeviceUnits
(PAINT_INDENT);
5415
outlineSizeExplorerTreeStyle =
LogicalToDeviceUnits
(OUTLINE_SIZE_EXPLORER_TREE_STYLE);
5416
outlineSize =
LogicalToDeviceUnits
(OUTLINE_SIZE);
5417
maxListBoxHeight =
LogicalToDeviceUnits
(MAX_LISTBOX_HEIGHT);
5418
offset_2Units =
LogicalToDeviceUnits
(OFFSET_2PIXELS);
winforms\Managed\System\WinForms\RadioButton.cs (4)
73
flatSystemStylePaddingWidth =
LogicalToDeviceUnits
(FlatSystemStylePaddingWidth);
74
flatSystemStyleMinimumHeight =
LogicalToDeviceUnits
(FlatSystemStyleMinimumHeight);
311
flatSystemStylePaddingWidth =
LogicalToDeviceUnits
(FlatSystemStylePaddingWidth);
312
flatSystemStyleMinimumHeight =
LogicalToDeviceUnits
(FlatSystemStyleMinimumHeight);
winforms\Managed\System\WinForms\ThreadExceptionDialog.cs (19)
102
scaledMaxWidth =
LogicalToDeviceUnits
(MAXWIDTH);
103
scaledMaxHeight =
LogicalToDeviceUnits
(MAXHEIGHT);
104
scaledPaddingWidth =
LogicalToDeviceUnits
(PADDINGWIDTH);
105
scaledPaddingHeight =
LogicalToDeviceUnits
(PADDINGHEIGHT);
106
scaledMaxTextWidth =
LogicalToDeviceUnits
(MAXTEXTWIDTH);
107
scaledMaxTextHeight =
LogicalToDeviceUnits
(MAXTEXTHEIGHT);
108
scaledButtonTopPadding =
LogicalToDeviceUnits
(BUTTONTOPPADDING);
109
scaledButtonDetailsLeftPadding =
LogicalToDeviceUnits
(BUTTONDETAILS_LEFTPADDING);
110
scaledMessageTopPadding =
LogicalToDeviceUnits
(MESSAGE_TOPPADDING);
111
scaledHeightPadding =
LogicalToDeviceUnits
(HEIGHTPADDING);
112
scaledButtonWidth =
LogicalToDeviceUnits
(BUTTONWIDTH);
113
scaledButtonHeight =
LogicalToDeviceUnits
(BUTTONHEIGHT);
114
scaledButtonAlignmentWidth =
LogicalToDeviceUnits
(BUTTONALIGNMENTWIDTH);
115
scaledButtonAlignmentPadding =
LogicalToDeviceUnits
(BUTTONALIGNMENTPADDING);
116
scaledDetailsWidthPadding =
LogicalToDeviceUnits
(DETAILSWIDTHPADDING);
117
scaledDetailsHeight =
LogicalToDeviceUnits
(DETAILSHEIGHT);
118
scaledPictureWidth =
LogicalToDeviceUnits
(PICTUREWIDTH);
119
scaledPictureHeight =
LogicalToDeviceUnits
(PICTUREHEIGHT);
120
scaledExceptionMessageVerticalPadding =
LogicalToDeviceUnits
(EXCEPTIONMESSAGEVERTICALPADDING);
winforms\Managed\System\WinForms\UpDownBase.cs (2)
89
defaultButtonsWidth =
LogicalToDeviceUnits
(DefaultButtonsWidth);
754
defaultButtonsWidth =
LogicalToDeviceUnits
(DefaultButtonsWidth);
winforms\Managed\System\WinForms\VScrollBar.cs (1)
60
return new Size(SystemInformation.GetVerticalScrollBarWidthForDpi(this.deviceDpi),
LogicalToDeviceUnits
(VERTICAL_SCROLLBAR_HEIGHT));