49 references to LogicalToDeviceUnits
System.Windows.Forms (49)
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxStandardAdapter.cs (1)
132
? Control.
LogicalToDeviceUnits
(layout.CheckSize)
System\Windows\Forms\Controls\Buttons\CheckBox.cs (2)
266
_flatSystemStylePaddingWidth =
LogicalToDeviceUnits
(LogicalFlatSystemStylePaddingWidth);
267
_flatSystemStyleMinimumHeight =
LogicalToDeviceUnits
(LogicalFlatSystemStyleMinimumHeight);
System\Windows\Forms\Controls\Buttons\RadioButton.cs (2)
243
_flatSystemStylePaddingWidth =
LogicalToDeviceUnits
(LogicalFlatSystemStylePaddingWidth);
244
_flatSystemStyleMinimumHeight =
LogicalToDeviceUnits
(LogicalFlatSystemStyleMinimumHeight);
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
31
s_offsetPixels = comboBox.
LogicalToDeviceUnits
(OFFSET_2PIXELS);
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
490
RowHeadersWidth =
LogicalToDeviceUnits
(DefaultRowHeadersWidth);
491
_columnHeadersHeight =
LogicalToDeviceUnits
(DefaultColumnHeadersHeight);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
2529
_keyboardResizeStep =
LogicalToDeviceUnits
(RightToLeftInternal ? -1 : 1);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (3)
145
_listItemStartPosition =
LogicalToDeviceUnits
(DefaultListItemStartPos);
149
_listItemBordersHeight = 2 *
LogicalToDeviceUnits
(DefaultListItemBorderHeight);
150
_listItemPaddingBuffer =
LogicalToDeviceUnits
(DefaultListItemPaddingBuffer);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
161
_extraPadding =
LogicalToDeviceUnits
(LogicalExtraPadding);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
102
return OwnerGridView?.
LogicalToDeviceUnits
(LogicalOutlineIconPadding) ?? LogicalOutlineIconPadding;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (7)
54
Size = new(
LogicalToDeviceUnits
(LogicalDefaultWidth),
LogicalToDeviceUnits
(LogicalDefaultHeight));
92
int padding = isScalingRequirementMet ?
LogicalToDeviceUnits
(2) : 2;
94
return Math.Max(height + 2 * padding, isScalingRequirementMet ?
LogicalToDeviceUnits
(LogicalDefaultHeight) : LogicalDefaultHeight);
132
_lineHeight = Font.Height +
LogicalToDeviceUnits
(2);
165
Math.Max(0, size.Height - _lineHeight - (ScaleHelper.IsScalingRequirementMet ?
LogicalToDeviceUnits
(1) : 1)),
186
_borderSize =
LogicalToDeviceUnits
(LogicalBorderSize);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (6)
5387
_paintWidth =
LogicalToDeviceUnits
(LogicalPaintWidth);
5388
_paintIndent =
LogicalToDeviceUnits
(LogicalPaintIndent);
5389
_outlineSizeExplorerTreeStyle =
LogicalToDeviceUnits
(OutlineSizeExplorerTreeStyle);
5390
_outlineSize =
LogicalToDeviceUnits
(LogicalOutlineSize);
5391
_maxListBoxHeight =
LogicalToDeviceUnits
(LogicalMaxListBoxHeight);
5392
_offset2Units =
LogicalToDeviceUnits
(Offset2Pixels);
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (2)
47
_defaultButtonsWidth =
LogicalToDeviceUnits
(DefaultButtonsWidth);
481
_defaultButtonsWidth =
LogicalToDeviceUnits
(DefaultButtonsWidth);
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (19)
76
_scaledMaxWidth =
LogicalToDeviceUnits
(MAXWIDTH);
77
_scaledMaxHeight =
LogicalToDeviceUnits
(MAXHEIGHT);
78
_scaledPaddingWidth =
LogicalToDeviceUnits
(PADDINGWIDTH);
79
_scaledPaddingHeight =
LogicalToDeviceUnits
(PADDINGHEIGHT);
80
_scaledMaxTextWidth =
LogicalToDeviceUnits
(MAXTEXTWIDTH);
81
_scaledMaxTextHeight =
LogicalToDeviceUnits
(MAXTEXTHEIGHT);
82
_scaledButtonTopPadding =
LogicalToDeviceUnits
(BUTTONTOPPADDING);
83
_scaledButtonDetailsLeftPadding =
LogicalToDeviceUnits
(BUTTONDETAILS_LEFTPADDING);
84
_scaledMessageTopPadding =
LogicalToDeviceUnits
(MESSAGE_TOPPADDING);
85
_scaledHeightPadding =
LogicalToDeviceUnits
(HEIGHTPADDING);
86
_scaledButtonWidth =
LogicalToDeviceUnits
(BUTTONWIDTH);
87
_scaledButtonHeight =
LogicalToDeviceUnits
(BUTTONHEIGHT);
88
_scaledButtonAlignmentWidth =
LogicalToDeviceUnits
(BUTTONALIGNMENTWIDTH);
89
_scaledButtonAlignmentPadding =
LogicalToDeviceUnits
(BUTTONALIGNMENTPADDING);
90
_scaledDetailsWidthPadding =
LogicalToDeviceUnits
(DETAILSWIDTHPADDING);
91
_scaledDetailsHeight =
LogicalToDeviceUnits
(DETAILSHEIGHT);
92
_scaledPictureWidth =
LogicalToDeviceUnits
(PICTUREWIDTH);
93
_scaledPictureHeight =
LogicalToDeviceUnits
(PICTUREHEIGHT);
94
_scaledExceptionMessageVerticalPadding =
LogicalToDeviceUnits
(EXCEPTIONMESSAGEVERTICALPADDING);
System\Windows\Forms\Scrolling\VScrollBar.cs (1)
33
return new Size(SystemInformation.GetVerticalScrollBarWidthForDpi(_deviceDpi),
LogicalToDeviceUnits
(DefaultHeight));