32 references to BorderSize
System.Windows.Forms (6)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
775
_prefHeightCache = (short)(textSize.Height + SystemInformation.
BorderSize
.Height * 8 + Padding.Size.Height);
792
_prefHeightCache = (short)(textSize.Height * itemCount + SystemInformation.
BorderSize
.Height * 16 + Padding.Size.Height);
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
750
height += SystemInformation.
BorderSize
.Height * 4 + 3;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
750
height += SystemInformation.
BorderSize
.Height * 4 + 3;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
344
height += SystemInformation.
BorderSize
.Height * 4 + 3;
System\Windows\Forms\SystemInformation.cs (1)
103
:
BorderSize
;
System.Windows.Forms.Design (8)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (6)
190
_listBox.ItemHeight = Font.Height + SystemInformation.
BorderSize
.Width * 2;
218
w += SystemInformation.
BorderSize
.Width * 4;
227
return (int)Math.Ceiling(size.Width) + w + pic + SystemInformation.
BorderSize
.Width * 4;
570
w += SystemInformation.
BorderSize
.Width * 4;
575
button.Inflate(-SystemInformation.
BorderSize
.Width * 2, -SystemInformation.
BorderSize
.Height * 2);
System\Windows\Forms\Design\ComponentTray.cs (1)
1924
_borderWidth = SystemInformation.
BorderSize
.Width;
System\Windows\Forms\Design\ControlDesigner.cs (1)
2260
Math.Max(SystemInformation.ToolWindowCaptionHeight - SystemInformation.
BorderSize
.Height - 2, Control.Font.Height),
System.Windows.Forms.Tests (18)
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
16
private static readonly int s_preferredHeight = Control.DefaultFont.Height + SystemInformation.
BorderSize
.Height * 4 + 3;
System\Windows\Forms\ListBoxTests.cs (3)
102
Assert.Equal(Control.DefaultFont.Height + SystemInformation.
BorderSize
.Height * 4 + 3, control.PreferredHeight);
2052
int extra = SystemInformation.
BorderSize
.Height * 4 + 3;
2081
int extra = SystemInformation.
BorderSize
.Height * 4 + 3;
System\Windows\Forms\RichTextBoxTests.cs (1)
24
private static readonly int s_preferredHeight = Control.DefaultFont.Height + SystemInformation.
BorderSize
.Height * 4 + 3;
System\Windows\Forms\SystemInformationTests.cs (2)
67
Size size = SystemInformation.
BorderSize
;
70
Assert.Equal(size, SystemInformation.
BorderSize
);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
5007
var nonClientSize = SystemInformation.
BorderSize
;
System\Windows\Forms\UpDownBaseTests.cs (8)
721
yield return new object[] { BorderStyle.Fixed3D, new Size(122, Control.DefaultFont.Height + SystemInformation.
BorderSize
.Height * 4 + 3) };
722
yield return new object[] { BorderStyle.FixedSingle, new Size(122, Control.DefaultFont.Height + SystemInformation.
BorderSize
.Height * 4 + 3) };
727
yield return new object[] { BorderStyle.Fixed3D, new Size(123, Control.DefaultFont.Height + SystemInformation.
BorderSize
.Height * 4 + 3) };
728
yield return new object[] { BorderStyle.FixedSingle, new Size(121, Control.DefaultFont.Height + SystemInformation.
BorderSize
.Height * 4 + 3) };
758
yield return new object[] { BorderStyle.Fixed3D, 0, 0, new Size(122, Control.DefaultFont.Height + SystemInformation.
BorderSize
.Height * 4 + 3) };
759
yield return new object[] { BorderStyle.FixedSingle, 0, 1, new Size(122, Control.DefaultFont.Height + SystemInformation.
BorderSize
.Height * 4 + 3) };
764
yield return new object[] { BorderStyle.Fixed3D, 0, 0, new Size(123, Control.DefaultFont.Height + SystemInformation.
BorderSize
.Height * 4 + 3) };
765
yield return new object[] { BorderStyle.FixedSingle, 1, 1, new Size(123, Control.DefaultFont.Height + SystemInformation.
BorderSize
.Height * 4 + 3) };
TextBoxBaseTests.cs (1)
18
private static readonly int s_preferredHeight = Control.DefaultFont.Height + SystemInformation.
BorderSize
.Height * 4 + 3;
TextBoxTests.cs (1)
15
private static readonly int s_preferredHeight = Control.DefaultFont.Height + SystemInformation.
BorderSize
.Height * 4 + 3;