3 writes to DeviceDpiInternal
System.Windows.Forms (3)
System\Windows\Forms\Control.cs (1)
11592
DeviceDpiInternal
= newDeviceDpi;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
778
item._dropDown.
DeviceDpiInternal
= newDpi;
System\Windows\Forms\Form.cs (1)
4579
DeviceDpiInternal
= e.DeviceDpiNew;
33 references to DeviceDpiInternal
System.Windows.Forms (33)
System\Windows\Forms\Control.cs (17)
431
/// DeviceDPI, it can safely access the internal properties <see cref="
DeviceDpiInternal
"/>
458
if (value !=
DeviceDpiInternal
)
474
DeviceDpiInternal
);
484
DeviceDpiInternal
);
1701
=> ScaleHelper.IsThreadPerMonitorV2Aware ?
DeviceDpiInternal
: ScaleHelper.InitialSystemDpi;
5410
if (OriginalDeviceDpiInternal !=
DeviceDpiInternal
&& OsVersion.IsWindows10_1703OrGreater())
5565
fontDpi =
DeviceDpiInternal
;
6466
AdjustWindowRectExForDpi(ref rect, style, bMenu, exStyle,
DeviceDpiInternal
);
7439
int old =
DeviceDpiInternal
;
7443
if (old ==
DeviceDpiInternal
)
7448
if (fontDpi !=
DeviceDpiInternal
)
7452
Font fontForDpi = GetScaledFont(localFont,
DeviceDpiInternal
, fontDpi);
7464
RescaleConstantsForDpi(old,
DeviceDpiInternal
);
11574
OriginalDeviceDpiInternal =
DeviceDpiInternal
;
11594
if (fontDpi ==
DeviceDpiInternal
)
11606
ScaledControlFont = GetScaledFont(localFont,
DeviceDpiInternal
, fontDpi);
11625
RescaleConstantsForDpi(OriginalDeviceDpiInternal,
DeviceDpiInternal
);
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
32
int dropDownButtonWidth = SystemInformation.GetHorizontalScrollBarArrowWidthForDpi(comboBox.
DeviceDpiInternal
);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
2596
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)
4358
? new Size(SystemInformation.VerticalScrollBarArrowHeightForDpi(
DeviceDpiInternal
), RowHeight)
5171
_dropDownButton.Size = new(SystemInformation.VerticalScrollBarArrowHeightForDpi(
DeviceDpiInternal
), RowHeight);
System\Windows\Forms\Controls\TextBox\TextBox.cs (2)
407
scrollBarPadding.Height += SystemInformation.GetHorizontalScrollBarHeightForDpi(
DeviceDpiInternal
);
412
scrollBarPadding.Width += SystemInformation.GetVerticalScrollBarWidthForDpi(
DeviceDpiInternal
);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
808
height += SystemInformation.GetBorderSizeForDpi(
DeviceDpiInternal
).Height * 4 + 3;
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (2)
446
if (currentDpi == _parent.
DeviceDpiInternal
)
451
double factor = ((double)currentDpi) / _parent.
DeviceDpiInternal
;
System\Windows\Forms\Form.cs (2)
4578
DpiChangedEventArgs e = new(
DeviceDpiInternal
, m);
4631
|| 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
),