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)
14
private static readonly int s_preferredHeight = Control.DefaultFont.Height + SystemInformation.
BorderSize
.Height * 4 + 3;
System\Windows\Forms\ListBoxTests.cs (3)
100
Assert.Equal(Control.DefaultFont.Height + SystemInformation.
BorderSize
.Height * 4 + 3, control.PreferredHeight);
2050
int extra = SystemInformation.
BorderSize
.Height * 4 + 3;
2079
int extra = SystemInformation.
BorderSize
.Height * 4 + 3;
System\Windows\Forms\RichTextBoxTests.cs (1)
22
private static readonly int s_preferredHeight = Control.DefaultFont.Height + SystemInformation.
BorderSize
.Height * 4 + 3;
System\Windows\Forms\SystemInformationTests.cs (2)
65
Size size = SystemInformation.
BorderSize
;
68
Assert.Equal(size, SystemInformation.
BorderSize
);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
5005
var nonClientSize = SystemInformation.
BorderSize
;
System\Windows\Forms\UpDownBaseTests.cs (8)
719
yield return new object[] { BorderStyle.Fixed3D, new Size(122, Control.DefaultFont.Height + SystemInformation.
BorderSize
.Height * 4 + 3) };
720
yield return new object[] { BorderStyle.FixedSingle, new Size(122, Control.DefaultFont.Height + SystemInformation.
BorderSize
.Height * 4 + 3) };
725
yield return new object[] { BorderStyle.Fixed3D, new Size(123, Control.DefaultFont.Height + SystemInformation.
BorderSize
.Height * 4 + 3) };
726
yield return new object[] { BorderStyle.FixedSingle, new Size(121, Control.DefaultFont.Height + SystemInformation.
BorderSize
.Height * 4 + 3) };
756
yield return new object[] { BorderStyle.Fixed3D, 0, 0, new Size(122, Control.DefaultFont.Height + SystemInformation.
BorderSize
.Height * 4 + 3) };
757
yield return new object[] { BorderStyle.FixedSingle, 0, 1, new Size(122, Control.DefaultFont.Height + SystemInformation.
BorderSize
.Height * 4 + 3) };
762
yield return new object[] { BorderStyle.Fixed3D, 0, 0, new Size(123, Control.DefaultFont.Height + SystemInformation.
BorderSize
.Height * 4 + 3) };
763
yield return new object[] { BorderStyle.FixedSingle, 1, 1, new Size(123, Control.DefaultFont.Height + SystemInformation.
BorderSize
.Height * 4 + 3) };
TextBoxBaseTests.cs (1)
16
private static readonly int s_preferredHeight = Control.DefaultFont.Height + SystemInformation.
BorderSize
.Height * 4 + 3;
TextBoxTests.cs (1)
13
private static readonly int s_preferredHeight = Control.DefaultFont.Height + SystemInformation.
BorderSize
.Height * 4 + 3;