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)
31s_offsetPixels = comboBox.LogicalToDeviceUnits(OFFSET_2PIXELS);
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
490RowHeadersWidth = 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)
102return OwnerGridView?.LogicalToDeviceUnits(LogicalOutlineIconPadding) ?? LogicalOutlineIconPadding;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (7)
54Size = new(LogicalToDeviceUnits(LogicalDefaultWidth), LogicalToDeviceUnits(LogicalDefaultHeight)); 92int padding = isScalingRequirementMet ? LogicalToDeviceUnits(2) : 2; 94return Math.Max(height + 2 * padding, isScalingRequirementMet ? LogicalToDeviceUnits(LogicalDefaultHeight) : LogicalDefaultHeight); 132_lineHeight = Font.Height + LogicalToDeviceUnits(2); 165Math.Max(0, size.Height - _lineHeight - (ScaleHelper.IsScalingRequirementMet ? LogicalToDeviceUnits(1) : 1)), 186_borderSize = LogicalToDeviceUnits(LogicalBorderSize);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (6)
5391_paintWidth = LogicalToDeviceUnits(LogicalPaintWidth); 5392_paintIndent = LogicalToDeviceUnits(LogicalPaintIndent); 5393_outlineSizeExplorerTreeStyle = LogicalToDeviceUnits(OutlineSizeExplorerTreeStyle); 5394_outlineSize = LogicalToDeviceUnits(LogicalOutlineSize); 5395_maxListBoxHeight = LogicalToDeviceUnits(LogicalMaxListBoxHeight); 5396_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)
33return new Size(SystemInformation.GetVerticalScrollBarWidthForDpi(_deviceDpi), LogicalToDeviceUnits(DefaultHeight));