3 writes to DeviceDpiInternal
System.Windows.Forms (3)
System\Windows\Forms\Control.cs (1)
12373
DeviceDpiInternal
= newDeviceDpi;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
780
item._dropDown.
DeviceDpiInternal
= newDpi;
System\Windows\Forms\Form.cs (1)
4580
DeviceDpiInternal
= e.DeviceDpiNew;
74 references to DeviceDpiInternal
System.Windows.Forms (74)
System\Windows\Forms\Components\ErrorProvider\ErrorProvider.ErrorWindow.cs (2)
454
if (currentDpi == _parent.
DeviceDpiInternal
)
459
double factor = ((double)currentDpi) / _parent.
DeviceDpiInternal
;
System\Windows\Forms\Control.cs (18)
441
/// DeviceDPI, it can safely access the internal properties <see cref="
DeviceDpiInternal
"/>
468
if (value !=
DeviceDpiInternal
)
484
DeviceDpiInternal
);
494
DeviceDpiInternal
);
1882
=> ScaleHelper.IsThreadPerMonitorV2Aware ?
DeviceDpiInternal
: ScaleHelper.InitialSystemDpi;
5636
if (OriginalDeviceDpiInternal !=
DeviceDpiInternal
&& OsVersion.IsWindows10_1703OrGreater())
5791
fontDpi =
DeviceDpiInternal
;
6694
AdjustWindowRectExForDpi(ref rect, style, bMenu, exStyle,
DeviceDpiInternal
);
8098
int old =
DeviceDpiInternal
;
8102
if (old ==
DeviceDpiInternal
)
8107
if (fontDpi !=
DeviceDpiInternal
)
8111
Font fontForDpi = GetScaledFont(localFont,
DeviceDpiInternal
, fontDpi);
8123
RescaleConstantsForDpi(old,
DeviceDpiInternal
);
12354
OriginalDeviceDpiInternal =
DeviceDpiInternal
;
12355
int oldDeviceDpi =
DeviceDpiInternal
;
12377
if (fontDpi ==
DeviceDpiInternal
)
12389
ScaledControlFont = GetScaledFont(localFont,
DeviceDpiInternal
, fontDpi);
12408
RescaleConstantsForDpi(OriginalDeviceDpiInternal,
DeviceDpiInternal
);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
4068
DeviceDpiInternal
);
4075
DeviceDpiInternal
);
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
32
int dropDownButtonWidth = SystemInformation.GetHorizontalScrollBarArrowWidthForDpi(comboBox.
DeviceDpiInternal
);
System\Windows\Forms\Controls\ComboBox\ComboBox.Modern.cs (14)
47
deviceDpi:
DeviceDpiInternal
);
87
DeviceDpi =
DeviceDpiInternal
,
220
DeviceDpiInternal
);
227
DeviceDpiInternal
);
229
int simpleEditTop = topInset + ScaleHelper.ScaleToDpi(1,
DeviceDpiInternal
);
238
FontHeight + ScaleHelper.ScaleToDpi(2,
DeviceDpiInternal
));
240
+ ScaleHelper.ScaleToDpi(2,
DeviceDpiInternal
);
458
if (_nativeComboBaseline.DeviceDpi ==
DeviceDpiInternal
)
464
value *
DeviceDpiInternal
/ (double)_nativeComboBaseline.DeviceDpi);
702
DeviceDpiInternal
));
724
DeviceDpiInternal
);
756
DeviceDpiInternal
);
769
DeviceDpiInternal
);
778
DeviceDpiInternal
);
System\Windows\Forms\Controls\ComboBox\ComboBox.ModernComboAdapter.cs (5)
29
_deviceDpi = comboBox.
DeviceDpiInternal
;
58
&& combo.
DeviceDpiInternal
== _deviceDpi
413
comboBox.
DeviceDpiInternal
));
479
comboBox.
DeviceDpiInternal
));
500
comboBox.
DeviceDpiInternal
),
System\Windows\Forms\Controls\GroupBox\GroupBox.Modern.cs (5)
43
|| _modernCaptionDpi !=
DeviceDpiInternal
)
51
_modernCaptionDpi =
DeviceDpiInternal
;
161
float lineHeightPixels = font.GetHeight(
DeviceDpiInternal
);
635
DeviceDpiInternal
);
756
=> ScaleHelper.ScaleToDpi(value,
DeviceDpiInternal
);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
2649
if (OriginalDeviceDpiInternal !=
DeviceDpiInternal
)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (4)
230
? new(SystemInformation.VerticalScrollBarArrowHeightForDpi(
DeviceDpiInternal
), RowHeight)
277
? new Size(SystemInformation.VerticalScrollBarArrowHeightForDpi(
DeviceDpiInternal
), RowHeight)
4369
? new Size(SystemInformation.VerticalScrollBarArrowHeightForDpi(
DeviceDpiInternal
), RowHeight)
5182
_dropDownButton.Size = new(SystemInformation.VerticalScrollBarArrowHeightForDpi(
DeviceDpiInternal
), RowHeight);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (2)
342
padding.Bottom = SystemInformation.GetHorizontalScrollBarHeightForDpi(
DeviceDpiInternal
);
347
padding.Right = SystemInformation.GetVerticalScrollBarWidthForDpi(
DeviceDpiInternal
);
System\Windows\Forms\Controls\TextBox\TextBox.cs (5)
408
scrollBarPadding.Height += SystemInformation.GetHorizontalScrollBarHeightForDpi(
DeviceDpiInternal
);
413
scrollBarPadding.Width += SystemInformation.GetVerticalScrollBarWidthForDpi(
DeviceDpiInternal
);
438
padding.Bottom = SystemInformation.GetHorizontalScrollBarHeightForDpi(
DeviceDpiInternal
);
445
padding.Left = SystemInformation.GetVerticalScrollBarWidthForDpi(
DeviceDpiInternal
);
449
padding.Right = SystemInformation.GetVerticalScrollBarWidthForDpi(
DeviceDpiInternal
);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (9)
892
DeviceDpiInternal
);
917
height += SystemInformation.GetBorderSizeForDpi(
DeviceDpiInternal
).Height
948
DeviceDpiInternal
);
959
=> ScaleHelper.ScaleToDpi(logicalValue,
DeviceDpiInternal
);
967
DeviceDpiInternal
);
976
DeviceDpiInternal
);
1029
padding.Bottom += SystemInformation.GetHorizontalScrollBarHeightForDpi(
DeviceDpiInternal
);
1040
padding.Left += SystemInformation.GetVerticalScrollBarWidthForDpi(
DeviceDpiInternal
);
1044
padding.Right += SystemInformation.GetVerticalScrollBarWidthForDpi(
DeviceDpiInternal
);
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
375
deviceDpi:
DeviceDpiInternal
);
System\Windows\Forms\Form.cs (2)
4579
DpiChangedEventArgs e = new(
DeviceDpiInternal
, m);
4663
|| OnGetDpiScaledSize(
DeviceDpiInternal
, m.WParamInternal.LOWORD, ref desiredSize))
System\Windows\Forms\Layout\Containers\ContainerControl.cs (2)
332
currentAutoScaleDimensions = new SizeF(
DeviceDpiInternal
,
DeviceDpiInternal
);
System\Windows\Forms\Scrolling\VScrollBar.cs (1)
34
SystemInformation.GetVerticalScrollBarWidthForDpi(
DeviceDpiInternal
),