3 writes to DeviceDpiInternal
System.Windows.Forms (3)
System\Windows\Forms\Control.cs (1)
11571
DeviceDpiInternal
= newDeviceDpi;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
778
item._dropDown.
DeviceDpiInternal
= newDpi;
System\Windows\Forms\Form.cs (1)
4590
DeviceDpiInternal
= e.DeviceDpiNew;
33 references to DeviceDpiInternal
System.Windows.Forms (33)
System\Windows\Forms\Control.cs (17)
436
/// DeviceDPI, it can safely access the internal properties <see cref="
DeviceDpiInternal
"/>
463
if (value !=
DeviceDpiInternal
)
479
DeviceDpiInternal
);
489
DeviceDpiInternal
);
1680
=> ScaleHelper.IsThreadPerMonitorV2Aware ?
DeviceDpiInternal
: ScaleHelper.InitialSystemDpi;
5389
if (OriginalDeviceDpiInternal !=
DeviceDpiInternal
&& OsVersion.IsWindows10_1703OrGreater())
5544
fontDpi =
DeviceDpiInternal
;
6445
AdjustWindowRectExForDpi(ref rect, style, bMenu, exStyle,
DeviceDpiInternal
);
7418
int old =
DeviceDpiInternal
;
7422
if (old ==
DeviceDpiInternal
)
7427
if (fontDpi !=
DeviceDpiInternal
)
7431
Font fontForDpi = GetScaledFont(localFont,
DeviceDpiInternal
, fontDpi);
7443
RescaleConstantsForDpi(old,
DeviceDpiInternal
);
11553
OriginalDeviceDpiInternal =
DeviceDpiInternal
;
11573
if (fontDpi ==
DeviceDpiInternal
)
11585
ScaledControlFont = GetScaledFont(localFont,
DeviceDpiInternal
, fontDpi);
11604
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)
217
? new(SystemInformation.VerticalScrollBarArrowHeightForDpi(
DeviceDpiInternal
), RowHeight)
255
? new Size(SystemInformation.VerticalScrollBarArrowHeightForDpi(
DeviceDpiInternal
), RowHeight)
4334
? new Size(SystemInformation.VerticalScrollBarArrowHeightForDpi(
DeviceDpiInternal
), RowHeight)
5147
_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)
809
height += SystemInformation.GetBorderSizeForDpi(
DeviceDpiInternal
).Height * 4 + 3;
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (2)
452
if (currentDpi == _parent.
DeviceDpiInternal
)
457
double factor = ((double)currentDpi) / _parent.
DeviceDpiInternal
;
System\Windows\Forms\Form.cs (2)
4589
DpiChangedEventArgs e = new(
DeviceDpiInternal
, m);
4642
|| 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
),