29 references to VerticalScrollBarWidth
System.Windows.Forms (15)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
941
&& SystemInformation.
VerticalScrollBarWidth
<= _layout.Data.Width)
944
availableWidth -= SystemInformation.
VerticalScrollBarWidth
;
10171
int vertScrollBarWidth = _vertScrollBar.Width = SystemInformation.
VerticalScrollBarWidth
;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
614
s_cachedDropDownWidth = maxPreferredWidth + 2 + SystemInformation.
VerticalScrollBarWidth
;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
769
width += SystemInformation.
VerticalScrollBarWidth
+ 4;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
3715
maxWidth += 2 + tm.tmMaxCharWidth + SystemInformation.
VerticalScrollBarWidth
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
41
new(SystemInformation.
VerticalScrollBarWidth
* 4, SystemInformation.HorizontalScrollBarHeight * 4);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
438
scrollBarPadding.Width += SystemInformation.
VerticalScrollBarWidth
;
System\Windows\Forms\Form.cs (3)
3042
correctClientSize.Width += SystemInformation.
VerticalScrollBarWidth
;
3062
correct.Width += SystemInformation.
VerticalScrollBarWidth
;
5297
x += SystemInformation.
VerticalScrollBarWidth
;
System\Windows\Forms\Scrolling\ScrollableControl.cs (3)
325
fullClient.Width += SystemInformation.
VerticalScrollBarWidth
;
329
minClient.Width -= SystemInformation.
VerticalScrollBarWidth
;
508
clientToBe.Width -= SystemInformation.
VerticalScrollBarWidth
;
System\Windows\Forms\Scrolling\VScrollBar.cs (1)
36
return new Size(SystemInformation.
VerticalScrollBarWidth
, DefaultHeight);
System.Windows.Forms.Design (8)
System\ComponentModel\Design\ByteViewer.cs (1)
439
_scrollbarWidth = SystemInformation.
VerticalScrollBarWidth
;
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
103
maxWidth += 2 + tm.tmMaxCharWidth + SystemInformation.
VerticalScrollBarWidth
;
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
158
requestedSize.Width += SystemInformation.
VerticalScrollBarWidth
;
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
116
Width = Math.Max(Width, PreferredWidth + (SystemInformation.
VerticalScrollBarWidth
* 2));
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
579
Width = Math.Max(Width, _treeViewCtrl is null ? 0 : _treeViewCtrl.PreferredWidth + (SystemInformation.
VerticalScrollBarWidth
* 2));
System\Windows\Forms\Design\FormDocumentDesigner.cs (2)
121
size.Width += SystemInformation.
VerticalScrollBarWidth
;
436
clientWidth += SystemInformation.
VerticalScrollBarWidth
;
System\Windows\Forms\Design\MaskDesignerDialog.cs (1)
83
_validatingTypeHeader.Width = (_listViewCannedMasks.Width / 3) - SystemInformation.
VerticalScrollBarWidth
- 4; // so no h-scrollbar.
System.Windows.Forms.Tests (6)
System\Windows\Forms\AccessibleObjects\Panel.PanelAccessibleObjectTests.cs (1)
279
int verticalScrollBarWidth = SystemInformation.
VerticalScrollBarWidth
;
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (1)
551
int verticalScrollBarWidth = SystemInformation.
VerticalScrollBarWidth
;
System\Windows\Forms\ScrollableControlTests.cs (2)
199
yield return new object[] { true, width, height, width - 20, height + 50, new Rectangle(0, 0, width - SystemInformation.
VerticalScrollBarWidth
, height) };
201
yield return new object[] { true, width, height, width + 50, height + 50, new Rectangle(0, 0, width - SystemInformation.
VerticalScrollBarWidth
, height - SystemInformation.HorizontalScrollBarHeight) };
System\Windows\Forms\SystemInformationTests.cs (2)
782
int width = SystemInformation.
VerticalScrollBarWidth
;
785
Assert.Equal(width, SystemInformation.
VerticalScrollBarWidth
);