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)
750height += SystemInformation.BorderSize.Height * 4 + 3;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
750height += SystemInformation.BorderSize.Height * 4 + 3;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
344height += 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; 218w += SystemInformation.BorderSize.Width * 4; 227return (int)Math.Ceiling(size.Width) + w + pic + SystemInformation.BorderSize.Width * 4; 570w += SystemInformation.BorderSize.Width * 4; 575button.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)
2262Math.Max(SystemInformation.ToolWindowCaptionHeight - SystemInformation.BorderSize.Height - 2, Control.Font.Height),
System.Windows.Forms.Tests (18)
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
14private static readonly int s_preferredHeight = Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3;
System\Windows\Forms\ListBoxTests.cs (3)
100Assert.Equal(Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3, control.PreferredHeight); 2050int extra = SystemInformation.BorderSize.Height * 4 + 3; 2079int extra = SystemInformation.BorderSize.Height * 4 + 3;
System\Windows\Forms\RichTextBoxTests.cs (1)
22private static readonly int s_preferredHeight = Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3;
System\Windows\Forms\SystemInformationTests.cs (2)
65Size size = SystemInformation.BorderSize; 68Assert.Equal(size, SystemInformation.BorderSize);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
5005var nonClientSize = SystemInformation.BorderSize;
System\Windows\Forms\UpDownBaseTests.cs (8)
719yield return new object[] { BorderStyle.Fixed3D, new Size(122, Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3) }; 720yield return new object[] { BorderStyle.FixedSingle, new Size(122, Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3) }; 725yield return new object[] { BorderStyle.Fixed3D, new Size(123, Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3) }; 726yield return new object[] { BorderStyle.FixedSingle, new Size(121, Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3) }; 756yield return new object[] { BorderStyle.Fixed3D, 0, 0, new Size(122, Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3) }; 757yield return new object[] { BorderStyle.FixedSingle, 0, 1, new Size(122, Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3) }; 762yield return new object[] { BorderStyle.Fixed3D, 0, 0, new Size(123, Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3) }; 763yield return new object[] { BorderStyle.FixedSingle, 1, 1, new Size(123, Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3) };
TextBoxBaseTests.cs (1)
16private static readonly int s_preferredHeight = Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3;
TextBoxTests.cs (1)
13private static readonly int s_preferredHeight = Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3;