3 writes to DeviceDpiInternal
System.Windows.Forms (3)
System\Windows\Forms\Control.cs (1)
11550
DeviceDpiInternal
= newDeviceDpi;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
778
item._dropDown.
DeviceDpiInternal
= newDpi;
System\Windows\Forms\Form.cs (1)
4582
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
);
1675
=> ScaleHelper.IsThreadPerMonitorV2Aware ?
DeviceDpiInternal
: ScaleHelper.InitialSystemDpi;
5384
if (OriginalDeviceDpiInternal !=
DeviceDpiInternal
&& OsVersion.IsWindows10_1703OrGreater())
5539
fontDpi =
DeviceDpiInternal
;
6440
AdjustWindowRectExForDpi(ref rect, style, bMenu, exStyle,
DeviceDpiInternal
);
7413
int old =
DeviceDpiInternal
;
7417
if (old ==
DeviceDpiInternal
)
7422
if (fontDpi !=
DeviceDpiInternal
)
7426
Font fontForDpi = GetScaledFont(localFont,
DeviceDpiInternal
, fontDpi);
7438
RescaleConstantsForDpi(old,
DeviceDpiInternal
);
11532
OriginalDeviceDpiInternal =
DeviceDpiInternal
;
11552
if (fontDpi ==
DeviceDpiInternal
)
11564
ScaledControlFont = GetScaledFont(localFont,
DeviceDpiInternal
, fontDpi);
11583
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)
4581
DpiChangedEventArgs e = new(
DeviceDpiInternal
, m);
4634
|| 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
),