267 references to Empty
System.Windows.Forms (60)
System\Windows\Forms\Control.cs (1)
1585protected virtual Padding DefaultPadding => Padding.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
2955if (cellStyle is not null && cellStyle.Padding != Padding.Empty) 2959else if (columnHeadersStyle!.Padding != Padding.Empty)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (3)
696if (cellStyle.Padding != Padding.Empty) 910Padding.Empty, 940Padding.Empty,
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonColumn.cs (1)
226!defaultCellStyle.Padding.Equals(Padding.Empty));
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (6)
2247if (cellStyle is not null && cellStyle.Padding != Padding.Empty) 2251else if (rowStyle is not null && rowStyle.Padding != Padding.Empty) 2255else if (DataGridView.RowsDefaultCellStyle.Padding != Padding.Empty && 2256(rowIndex % 2 == 0 || DataGridView.AlternatingRowsDefaultCellStyle.Padding == Padding.Empty)) 2260else if (rowIndex % 2 == 1 && DataGridView.AlternatingRowsDefaultCellStyle.Padding != Padding.Empty) 2264else if (columnStyle is not null && columnStyle.Padding != Padding.Empty)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (2)
438if (dataGridViewCellStyle.Padding != Padding.Empty) 643if (Padding != Padding.Empty)
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (4)
1119if (cellStyle.Padding != Padding.Empty) 1395Padding.Empty, 1444Padding.Empty, 1491Padding.Empty,
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxColumn.cs (1)
312!defaultCellStyle.Padding.Equals(Padding.Empty));
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (2)
225!defaultCellStyle.Padding.Equals(Padding.Empty)); 555if (columnStyle is not null && columnStyle.Padding != Padding.Empty)
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (5)
460if (cellStyle is not null && cellStyle.Padding != Padding.Empty) 464else if (columnHeadersStyle.Padding != Padding.Empty) 775if (cellStyle.Padding != Padding.Empty) 777if (cellStyle.Padding != Padding.Empty) 877if (cellStyle.Padding != Padding.Empty)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1941if (cellStyle.Padding != Padding.Empty)
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (1)
766if (cellStyle.Padding != Padding.Empty)
System\Windows\Forms\Controls\DataGridView\DataGridViewImageColumn.cs (1)
288!defaultCellStyle.Padding.Equals(Padding.Empty));
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (1)
923if (cellStyle.Padding != Padding.Empty)
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (6)
773if (cellStyle is not null && cellStyle.Padding != Padding.Empty) 777else if (rowHeadersStyle is not null && rowHeadersStyle.Padding != Padding.Empty) 1018if (rowStyle is not null && rowStyle.Padding != Padding.Empty) 1022else if (rowsDefaultCellStyle.Padding != Padding.Empty && 1023(rowIndex % 2 == 0 || alternatingRowsDefaultCellStyle.Padding == Padding.Empty)) 1027else if (rowIndex % 2 == 1 && alternatingRowsDefaultCellStyle.Padding != Padding.Empty)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (4)
485if (cellStyle is not null && cellStyle.Padding != Padding.Empty) 489else if (rowHeadersStyle.Padding != Padding.Empty) 658if (cellStyle.Padding != Padding.Empty) 742if (cellStyle.Padding != Padding.Empty)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
691if (cellStyle.Padding != Padding.Empty)
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.cs (1)
281if (cellStyle.Padding != Padding.Empty)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
556protected override Padding DefaultMargin => Padding.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
672protected virtual Padding DefaultPadding => Padding.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
218protected internal override Padding DefaultMargin => Padding.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflowButton.cs (1)
43protected internal override Padding DefaultMargin => Padding.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (2)
117get { return Padding.Empty; } 122get { return Padding.Empty; }
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (1)
106Margin = Padding.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (1)
158get { return Padding.Empty; }
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.cs (2)
46protected internal override Padding DefaultMargin => Padding.Empty; 48protected override Padding DefaultPadding => Padding.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
56protected internal override Padding DefaultMargin => Padding.Empty;
System\Windows\Forms\Layout\ArrangedElement.cs (2)
47get { return Padding.Empty; } 52get { return Padding.Empty; }
System\Windows\Forms\Layout\DefaultLayout.cs (1)
674containerPadding = CommonProperties.GetPadding(container, Padding.Empty);
System\Windows\Forms\MDI\MDIControlStrip.cs (2)
55item.Padding = Padding.Empty; 69_system.Padding = Padding.Empty;
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
135protected override Padding DefaultMargin => Padding.Empty;
System.Windows.Forms.Design (6)
System\ComponentModel\Design\BinaryEditor.BinaryUI.cs (1)
176_byteViewer.Margin = Padding.Empty;
System\ComponentModel\Design\ByteViewer.cs (1)
463Margin = Padding.Empty,
System\ComponentModel\Design\DesignerActionUI.cs (1)
700Padding = Padding.Empty,
System\ComponentModel\Design\DesignerActionUI.DesignerActionToolStripDropDown.cs (1)
152Margin = Padding.Empty,
System\Windows\Forms\Design\DesignerToolStripControlHost.cs (1)
24Margin = Padding.Empty;
System\Windows\Forms\Design\FormDocumentDesigner.cs (1)
198if (Control.Padding == Padding.Empty && snapLines is not null)
System.Windows.Forms.Design.Tests (3)
System\ComponentModel\Design\ByteViewerTests.cs (2)
62Assert.Equal(Padding.Empty, control.DefaultPadding); 100Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\Design\DesignerToolStripControlHostTests.cs (1)
17host.Margin.Should().Be(Padding.Empty);
System.Windows.Forms.Tests (196)
CheckedListBoxTests.cs (1)
182yield return new object[] { new Padding(-1, -2, -3, -4), Padding.Empty, 1, 2 };
System\Windows\Forms\AxHostTests.cs (4)
64Assert.Equal(Padding.Empty, control.DefaultPadding); 93Assert.Equal(Padding.Empty, control.Padding); 158Assert.Equal(Padding.Empty, control.DefaultPadding); 187Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\ButtonBaseTests.cs (2)
55Assert.Equal(Padding.Empty, control.DefaultPadding); 90Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\ButtonTests.cs (2)
57Assert.Equal(Padding.Empty, control.DefaultPadding); 93Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\CheckBoxTests.cs (2)
59Assert.Equal(Padding.Empty, control.DefaultPadding); 94Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\ComboBoxTests.cs (2)
62Assert.Equal(Padding.Empty, control.DefaultPadding); 104Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\ContainerControlTests.cs (2)
63Assert.Equal(Padding.Empty, control.DefaultPadding); 98Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\ControlTests.cs (10)
50Assert.Equal(Padding.Empty, control.DefaultPadding); 76Assert.Equal(Padding.Empty, control.Padding); 139Assert.Equal(Padding.Empty, control.DefaultPadding); 165Assert.Equal(Padding.Empty, control.Padding); 235Assert.Equal(Padding.Empty, control.DefaultPadding); 261Assert.Equal(Padding.Empty, control.Padding); 331Assert.Equal(Padding.Empty, control.DefaultPadding); 357Assert.Equal(Padding.Empty, control.Padding); 427Assert.Equal(Padding.Empty, control.DefaultPadding); 453Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\ControlTests.Properties.cs (9)
7675yield return new object[] { new ZeroDefaultMarginControl(), Padding.Empty }; 7692protected override Padding DefaultMargin => Padding.Empty; 7700yield return new object[] { new Padding(-1, -2, -3, -4), Padding.Empty }; 9385yield return new object[] { new Control(), Padding.Empty }; 9406yield return new object[] { new Padding(-1, -2, -3, -4), Padding.Empty, 1, 2 }; 9486yield return new object[] { false, new Padding(-1, -2, -3, -4), Padding.Empty, 1, 0, 2, 0 }; 9490yield return new object[] { true, new Padding(-1, -2, -3, -4), Padding.Empty, 1, 1, 2, 2 }; 9654Assert.Equal(Padding.Empty, control.Padding); 9670Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\DataGridViewCellStyleTests.cs (8)
29Assert.Equal(Padding.Empty, style.Padding); 96Assert.Equal(Padding.Empty, style.Padding); 482yield return new object[] { Padding.Empty, Padding.Empty }; 483yield return new object[] { new Padding(-1), Padding.Empty }; 484yield return new object[] { new Padding(-2), Padding.Empty }; 765Assert.Equal(Padding.Empty, style.Padding); 832Assert.Equal(Padding.Empty, style.Padding);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (2)
61Assert.Equal(Padding.Empty, control.DefaultPadding); 95Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\DateTimePickerTests.cs (2)
65Assert.Equal(Padding.Empty, control.DefaultPadding); 95Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (2)
73Assert.Equal(Padding.Empty, control.DefaultPadding); 128Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (2)
59Assert.Equal(Padding.Empty, control.DefaultPadding); 99Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\DomainUpDownTests.cs (2)
83_sub.DefaultPadding.Should().Be(Padding.Empty); 121_sub.Padding.Should().Be(Padding.Empty);
System\Windows\Forms\FlowLayoutPanelTests.cs (2)
56Assert.Equal(Padding.Empty, control.DefaultPadding); 92Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\FormTests.cs (2)
72Assert.Equal(Padding.Empty, control.DefaultPadding); 130Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\HScrollBarTests.cs (4)
54Assert.Equal(Padding.Empty, control.DefaultMargin); 57Assert.Equal(Padding.Empty, control.DefaultPadding); 85Assert.Equal(Padding.Empty, control.Margin); 90Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\LabelTests.cs (2)
53Assert.Equal(Padding.Empty, control.DefaultPadding); 85Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\Layout\FlowLayoutTests.cs (16)
42Margin = Padding.Empty, 52Margin = Padding.Empty, 66Margin = Padding.Empty, 71Margin = Padding.Empty, 103Margin = Padding.Empty, 113Margin = Padding.Empty, 127Margin = Padding.Empty, 132Margin = Padding.Empty, 164Margin = Padding.Empty, 174Margin = Padding.Empty, 188Margin = Padding.Empty, 193Margin = Padding.Empty, 225Margin = Padding.Empty, 235Margin = Padding.Empty, 249Margin = Padding.Empty, 254Margin = Padding.Empty,
System\Windows\Forms\ListBoxTests.cs (2)
59Assert.Equal(Padding.Empty, control.DefaultPadding); 97Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\ListControlTests.cs (2)
56Assert.Equal(Padding.Empty, control.DefaultPadding); 86Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\ListViewTests.cs (2)
68Assert.Equal(Padding.Empty, control.DefaultPadding); 114Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\MdiClientTests.cs (1)
66Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\MdiControlStripTests.cs (2)
59Assert.Equal(Padding.Empty, mdiControlStrip.DefaultMargin); 109Assert.Equal(Padding.Empty, mdiControlStrip.Margin);
System\Windows\Forms\MenuStripTests.cs (2)
57Assert.Equal(Padding.Empty, control.DefaultMargin); 107Assert.Equal(Padding.Empty, control.Margin);
System\Windows\Forms\MonthCalendarTests.cs (2)
66Assert.Equal(Padding.Empty, control.DefaultPadding); 102Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\PaddingTests.cs (1)
66Padding padding = Padding.Empty;
System\Windows\Forms\PanelTests.cs (2)
57Assert.Equal(Padding.Empty, control.DefaultPadding); 92Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\PictureBoxTests.cs (2)
56Assert.Equal(Padding.Empty, control.DefaultPadding); 87Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\ProgressBarTests.cs (2)
52Assert.Equal(Padding.Empty, control.DefaultPadding); 79Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\PropertyGridTests.cs (2)
83Assert.Equal(Padding.Empty, control.DefaultPadding); 127Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\RadioButtonTests.cs (2)
58Assert.Equal(Padding.Empty, control.DefaultPadding); 93Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\RichTextBoxTests.cs (2)
67Assert.Equal(Padding.Empty, control.DefaultPadding); 102Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\ScrollableControlTests.cs (7)
56Assert.Equal(Padding.Empty, control.DefaultPadding); 91Assert.Equal(Padding.Empty, control.Padding); 2072Assert.Equal(Padding.Empty, control.Padding); 2084Assert.Equal(Padding.Empty, control.Padding); 2135Assert.Equal(Padding.Empty, control.Padding); 2147Assert.Equal(Padding.Empty, control.Padding); 2214Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\ScrollBarTests.cs (4)
48Assert.Equal(Padding.Empty, control.DefaultMargin); 51Assert.Equal(Padding.Empty, control.DefaultPadding); 75Assert.Equal(Padding.Empty, control.Margin); 80Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\SplitterPanelTests.cs (2)
79Assert.Equal(Padding.Empty, control.Margin); 82Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\SplitterTests.cs (2)
52Assert.Equal(Padding.Empty, control.DefaultPadding); 80Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\StatusStripTests.cs (3)
57Assert.Equal(Padding.Empty, control.DefaultMargin); 107Assert.Equal(Padding.Empty, control.Margin); 400yield return new object[] { new Padding(-1, -2, -3, -4), Padding.Empty, 1, 2 };
System\Windows\Forms\TabControlTests.cs (1)
54Assert.Equal(Padding.Empty, control.DefaultPadding);
System\Windows\Forms\TableLayoutPanelTests.cs (2)
62Assert.Equal(Padding.Empty, control.DefaultPadding); 100Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\TabPageTests.cs (4)
62Assert.Equal(Padding.Empty, control.DefaultPadding); 97Assert.Equal(Padding.Empty, control.Padding); 171Assert.Equal(Padding.Empty, control.DefaultPadding); 206Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\ToolStripButtonTests.cs (12)
44Assert.Equal(Padding.Empty, item.DefaultPadding); 74Assert.Equal(Padding.Empty, item.Padding); 125Assert.Equal(Padding.Empty, item.DefaultPadding); 155Assert.Equal(Padding.Empty, item.Padding); 212Assert.Equal(Padding.Empty, item.DefaultPadding); 242Assert.Equal(Padding.Empty, item.Padding); 302Assert.Equal(Padding.Empty, item.DefaultPadding); 332Assert.Equal(Padding.Empty, item.Padding); 390Assert.Equal(Padding.Empty, item.DefaultPadding); 420Assert.Equal(Padding.Empty, item.Padding); 488Assert.Equal(Padding.Empty, item.DefaultPadding); 518Assert.Equal(Padding.Empty, item.Padding);
System\Windows\Forms\ToolStripContentPanelTests.cs (2)
59Assert.Equal(Padding.Empty, control.DefaultPadding); 94Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\ToolStripControlHostTests.cs (2)
74Assert.Equal(Padding.Empty, item.DefaultPadding); 103Assert.Equal(Padding.Empty, item.Padding);
System\Windows\Forms\ToolStripDropDownItemTests.cs (8)
40Assert.Equal(Padding.Empty, item.DefaultPadding); 74Assert.Equal(Padding.Empty, item.Padding); 129Assert.Equal(Padding.Empty, item.DefaultPadding); 163Assert.Equal(Padding.Empty, item.Padding); 228Assert.Equal(Padding.Empty, item.DefaultPadding); 262Assert.Equal(Padding.Empty, item.Padding); 328Assert.Equal(Padding.Empty, item.DefaultPadding); 370Assert.Equal(Padding.Empty, item.Padding);
System\Windows\Forms\ToolStripDropDownTests.cs (2)
61Assert.Equal(Padding.Empty, control.DefaultMargin); 114Assert.Equal(Padding.Empty, control.Margin);
System\Windows\Forms\ToolStripItemTests.cs (12)
43Assert.Equal(Padding.Empty, item.DefaultPadding); 73Assert.Equal(Padding.Empty, item.Padding); 128Assert.Equal(Padding.Empty, item.DefaultPadding); 158Assert.Equal(Padding.Empty, item.Padding); 223Assert.Equal(Padding.Empty, item.DefaultPadding); 253Assert.Equal(Padding.Empty, item.Padding); 6738yield return new object[] { new Padding(-1, -2, -3, -4), Padding.Empty, 1, 2 }; 6921Assert.Equal(Padding.Empty, item.Padding); 6937Assert.Equal(Padding.Empty, item.Padding); 14222Assert.Equal(Padding.Empty, item.Padding); 14227Assert.Equal(Padding.Empty, item.Padding); 14231Assert.Equal(Padding.Empty, item.Padding);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
74Assert.Equal(Padding.Empty, item.Margin);
System\Windows\Forms\ToolStripPanelTests.cs (4)
56Assert.Equal(Padding.Empty, control.DefaultMargin); 59Assert.Equal(Padding.Empty, control.DefaultPadding); 91Assert.Equal(Padding.Empty, control.Margin); 94Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\ToolStripSeparatorTests.cs (4)
40Assert.Equal(Padding.Empty, item.DefaultMargin); 41Assert.Equal(Padding.Empty, item.DefaultPadding); 65Assert.Equal(Padding.Empty, item.Margin); 71Assert.Equal(Padding.Empty, item.Padding);
System\Windows\Forms\ToolStripTests.cs (4)
61Assert.Equal(Padding.Empty, control.DefaultMargin); 125Assert.Equal(Padding.Empty, control.Margin); 218Assert.Equal(Padding.Empty, control.DefaultMargin); 280Assert.Equal(Padding.Empty, control.Margin);
System\Windows\Forms\TreeViewTests.cs (2)
54Assert.Equal(Padding.Empty, control.DefaultPadding); 93Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\UpDownBaseTests.cs (2)
70Assert.Equal(Padding.Empty, control.DefaultPadding); 106Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\UserControlTests.cs (2)
63Assert.Equal(Padding.Empty, control.DefaultPadding); 98Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\VScrollBarTests.cs (4)
53Assert.Equal(Padding.Empty, control.DefaultMargin); 56Assert.Equal(Padding.Empty, control.DefaultPadding); 84Assert.Equal(Padding.Empty, control.Margin); 89Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\WebBrowserTests.cs (2)
51Assert.Equal(Padding.Empty, control.DefaultPadding); 76Assert.Equal(Padding.Empty, control.Padding);
TextBoxTests.cs (2)
60Assert.Equal(Padding.Empty, control.DefaultPadding); 89Assert.Equal(Padding.Empty, control.Padding);
TrackBarTests.cs (2)
53Assert.Equal(Padding.Empty, control.DefaultPadding); 83Assert.Equal(Padding.Empty, control.Padding);
System.Windows.Forms.TestUtilities (1)
CommonTestHelperEx.cs (1)
94{ new Padding(-1, -2, -3, -4), Padding.Empty }
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
337Child.Margin = SWF.Padding.Empty;