296 references to new
Accessibility_Core_App (1)
CommonControl2.Designer.cs (1)
234this.monthCalendar1.Margin = new System.Windows.Forms.Padding(10);
DesignSurface (9)
MainForm.cs (1)
435Margin = new Padding(4),
MainForm.Designer.cs (8)
69this.splitContainer.Margin = new System.Windows.Forms.Padding(4); 104this.tabPage1.Padding = new System.Windows.Forms.Padding(3); 114this.tabPage2.Padding = new System.Windows.Forms.Padding(3); 124this.tabPage3.Padding = new System.Windows.Forms.Padding(3); 134this.tabPage4.Padding = new System.Windows.Forms.Padding(3); 144this.tabPage5.Padding = new System.Windows.Forms.Padding(3); 154this.tabPage6.Padding = new System.Windows.Forms.Padding(3); 301this.Margin = new System.Windows.Forms.Padding(4);
PresentationUI (47)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (25)
154this._summaryTab.Padding = new System.Windows.Forms.Padding(12); 230this._titleLabel.Margin = new System.Windows.Forms.Padding(3); 247this._versionLabel.Margin = new System.Windows.Forms.Padding(3); 255this._authorLabel.Margin = new System.Windows.Forms.Padding(3); 263this._statusLabel.Margin = new System.Windows.Forms.Padding(3); 271this._contentLabel.Margin = new System.Windows.Forms.Padding(3); 279this._languageLabel.Margin = new System.Windows.Forms.Padding(3); 287this._subjectLabel.Margin = new System.Windows.Forms.Padding(3); 304this._categoryLabel.Margin = new System.Windows.Forms.Padding(3); 339this._keywordsLabel.Margin = new System.Windows.Forms.Padding(3); 389this._identifierLabel.Margin = new System.Windows.Forms.Padding(3); 398this._descriptionLabel.Margin = new System.Windows.Forms.Padding(3); 404this._subjectLine.Margin = new System.Windows.Forms.Padding(3); 410this._categoryLine.Margin = new System.Windows.Forms.Padding(3); 416this._contentLine.Margin = new System.Windows.Forms.Padding(3); 513this._sizeLabel.Margin = new System.Windows.Forms.Padding(3); 597this._documentPrintedLabel.Margin = new System.Windows.Forms.Padding(3); 605this._documentModifiedLabel.Margin = new System.Windows.Forms.Padding(3); 613this._documentCreatedLabel.Margin = new System.Windows.Forms.Padding(3); 621this._revisionLabel.Margin = new System.Windows.Forms.Padding(3); 629this._lastSavedLabel.Margin = new System.Windows.Forms.Padding(3); 695this._fileCreatedLabel.Margin = new System.Windows.Forms.Padding(3); 703this._fileModifiedLabel.Margin = new System.Windows.Forms.Padding(3); 720this._fileAccessedLabel.Margin = new System.Windows.Forms.Padding(3); 737this.Padding = new System.Windows.Forms.Padding(3);
MS\Internal\Documents\RequestedSignatureDialog.Designer.cs (2)
107_userInputTableLayoutPanel.Margin = new System.Windows.Forms.Padding(0); 205_mainDialogTableLayoutPanel.Margin = new System.Windows.Forms.Padding(10);
MS\Internal\Documents\RMEnrollmentPage1.Designer.cs (2)
189_nextButton.Margin = new System.Windows.Forms.Padding(10); 198_cancelButton.Margin = new System.Windows.Forms.Padding(10);
MS\Internal\Documents\RMEnrollmentPage2.Designer.cs (4)
76this._nextButton.Margin = new System.Windows.Forms.Padding(10); 85this._cancelButton.Margin = new System.Windows.Forms.Padding(10); 129this._pictureBox1.Margin = new System.Windows.Forms.Padding(5); 139this._label2.Margin = new System.Windows.Forms.Padding(5);
MS\Internal\Documents\RMEnrollmentPage3.Designer.cs (3)
77this.label2.Margin = new System.Windows.Forms.Padding(7); 103this.label3.Margin = new System.Windows.Forms.Padding(5); 112this.progressBar1.Margin = new System.Windows.Forms.Padding(5);
MS\Internal\Documents\RMPermissions.Designer.cs (1)
68this.mainContentFlowPanel.Padding = new System.Windows.Forms.Padding(5);
MS\Internal\Documents\RMPublishingDialog.Designer.cs (4)
86this.flowLayoutPanelMain.Padding = new System.Windows.Forms.Padding(8); 122this.groupBoxMainContent.Margin = new System.Windows.Forms.Padding(5); 164this.textBoxUnrestrictedText.Padding = new System.Windows.Forms.Padding(3); 173this.labelSelectTemplate.Padding = new System.Windows.Forms.Padding(3);
MS\Internal\Documents\SignatureSummaryDialog.cs (2)
229Padding columnMargin = new Padding(0); 803private Padding _cellPadding = new Padding(10);
MS\Internal\Documents\SignatureSummaryDialog.Designer.cs (2)
92_flowpanelBottomControls.Margin = new System.Windows.Forms.Padding(0); 192_mainLayoutTable.Margin = new System.Windows.Forms.Padding(5);
MS\Internal\Documents\SigningDialog.Designer.cs (1)
244_mainLayoutTable.Margin = new System.Windows.Forms.Padding(5);
MS\Internal\Documents\SigningProgress.Designer.cs (1)
43_label.Margin = new System.Windows.Forms.Padding(10);
System.Windows.Forms (10)
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
135protected override Padding DefaultPadding => new(3);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
323protected override Padding DefaultMargin => new(9);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
66private static readonly Padding s_logicalDefaultGripMargin = new(2);
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (1)
22private static readonly Padding s_dropDownPadding = new(2);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
31internal static readonly Padding s_dragMargin = new(10);
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
37_defaultDropDownMargin = new(defaultMargin);
System\Windows\Forms\Layout\CommonProperties.cs (3)
31internal static Padding DefaultMargin { get; } = new(3); 255Debug.Assert(value != GetPadding(element, new Padding(-7105)), 261Debug.Assert(GetPadding(element, new Padding(-7105)) == value, "Error detected setting Padding.");
System\Windows\Forms\Scrolling\ScrollableControl.DockPaddingEdgesConverter.cs (1)
88_owner.Padding = new Padding(value);
System.Windows.Forms.Design (37)
System\ComponentModel\Design\BinaryEditor.BinaryUI.cs (2)
207_groupBoxMode.Padding = new Padding(0); 221_radioButtonsTableLayoutPanel.Margin = new Padding(9);
System\ComponentModel\Design\ToolStripContainerActionList.cs (1)
63panel.Padding = new Padding(0);
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (1)
93_relatedControl.Padding = new Padding(0);
System\Windows\Forms\Design\BorderSidesEditor.BorderSidesEditorUI.cs (1)
111_tableLayoutPanel.Margin = new Padding(0);
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (14)
290_dataBoundColumnRadioButton.Margin = new Padding(0); 337_checkBoxesTableLayoutPanel.Margin = new Padding(0); 345_frozenCheckBox.Margin = new Padding(0); 353_visibleCheckBox.Margin = new Padding(0); 359_readOnlyCheckBox.Margin = new Padding(0); 391_columnInDataSourceLabel.Margin = new Padding(0); 399_dataColumns.Margin = new Padding(0); 408_unboundColumnRadioButton.Margin = new Padding(0); 415_nameLabel.Margin = new Padding(0); 421_nameTextBox.Margin = new Padding(0); 428_typeLabel.Margin = new Padding(0); 436_columnTypesCombo.Margin = new Padding(0); 443_headerTextLabel.Margin = new Padding(0); 449_headerTextBox.Margin = new Padding(0);
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (4)
174_normalLabel.Margin = new Padding(0); 180_sampleDataGridView.Margin = new Padding(0); 187_selectedLabel.Margin = new Padding(0); 193_sampleDataGridViewSelected.Margin = new Padding(0);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (2)
568_selectedColumnsLabel.Margin = new Padding(0); 626Padding = new Padding(12);
System\Windows\Forms\Design\FormatStringDialog.cs (2)
175_formatControl1.Margin = new Padding(0); 217Padding = new Padding(0);
System\Windows\Forms\Design\MaskedTextBoxTextEditorDropDown.cs (1)
53Padding = new Padding(16);
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (1)
218Padding = new Padding(4);
System\Windows\Forms\Design\StyleEditorForm.cs (2)
376_sizeTypeGroupBox.Padding = new Padding(0); 392_sizeTypeTableLayoutPanel.Margin = new Padding(9);
System\Windows\Forms\Design\TabControlDesigner.cs (1)
271page.Padding = new Padding(3);
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (2)
20private static Padding s_defaultPadding = new(0); 372Control.Padding = new Padding(0);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (3)
894_centerTextBox.Margin = new Padding(1); 1374Margin = new Padding(1) 1402Margin = new Padding(1)
System.Windows.Forms.Design.Tests (2)
System\ComponentModel\Design\ByteViewerTests.cs (2)
59Assert.Equal(new Padding(3), control.DefaultMargin); 97Assert.Equal(new Padding(3), control.Margin);
System.Windows.Forms.Primitives (2)
System\Windows\Forms\Padding.cs (1)
21public static readonly Padding Empty = new(0);
System\Windows\Forms\PaddingConverter.cs (1)
89return new Padding(all);
System.Windows.Forms.Tests (179)
CheckedListBoxTests.cs (4)
181yield return new object[] { new Padding(1), new Padding(1), 1, 1 }; 228Padding padding1 = new(1); 239Padding padding2 = new(2);
NumericUpDownTests.cs (8)
387upDown.Padding = new Padding(1); 389upDown.Padding.Should().Be(new Padding(1)); 392upDown.Padding = new Padding(2); 394upDown.Padding.Should().Be(new Padding(2)); 412upDown.Padding = new Padding(1); 414upDown.Padding.Should().Be(new Padding(1)); 416upDown.Padding = new Padding(2); 418upDown.Padding.Should().Be(new Padding(2));
System\Windows\Forms\AxHostTests.cs (4)
61Assert.Equal(new Padding(3), control.DefaultMargin); 89Assert.Equal(new Padding(3), control.Margin); 155Assert.Equal(new Padding(3), control.DefaultMargin); 183Assert.Equal(new Padding(3), control.Margin);
System\Windows\Forms\ButtonBaseTests.cs (2)
52Assert.Equal(new Padding(3), control.DefaultMargin); 87Assert.Equal(new Padding(3), control.Margin);
System\Windows\Forms\ButtonTests.cs (2)
54Assert.Equal(new Padding(3), control.DefaultMargin); 90Assert.Equal(new Padding(3), control.Margin);
System\Windows\Forms\CheckBoxTests.cs (2)
56Assert.Equal(new Padding(3), control.DefaultMargin); 91Assert.Equal(new Padding(3), control.Margin);
System\Windows\Forms\ComboBoxTests.cs (4)
59Assert.Equal(new Padding(3), control.DefaultMargin); 99Assert.Equal(new Padding(3), control.Margin); 1236Padding padding1 = new(1); 1247Padding padding2 = new(2);
System\Windows\Forms\ContainerControlTests.cs (2)
60Assert.Equal(new Padding(3), control.DefaultMargin); 95Assert.Equal(new Padding(3), control.Margin);
System\Windows\Forms\ControlTests.cs (10)
47Assert.Equal(new Padding(3), control.DefaultMargin); 73Assert.Equal(new Padding(3), control.Margin); 136Assert.Equal(new Padding(3), control.DefaultMargin); 162Assert.Equal(new Padding(3), control.Margin); 232Assert.Equal(new Padding(3), control.DefaultMargin); 258Assert.Equal(new Padding(3), control.Margin); 328Assert.Equal(new Padding(3), control.DefaultMargin); 354Assert.Equal(new Padding(3), control.Margin); 424Assert.Equal(new Padding(3), control.DefaultMargin); 450Assert.Equal(new Padding(3), control.Margin);
System\Windows\Forms\ControlTests.Properties.cs (13)
7673yield return new object[] { new Control(), new Padding(3) }; 7699yield return new object[] { new Padding(1), new Padding(1) }; 7859Assert.Equal(new Padding(3), control.Margin); 7875Assert.Equal(new Padding(3), control.Margin); 9405yield return new object[] { new Padding(1), new Padding(1), 1, 1 }; 9485yield return new object[] { false, new Padding(1), new Padding(1), 1, 0, 1, 0 }; 9489yield return new object[] { true, new Padding(1), new Padding(1), 1, 1, 1, 1 }; 9619Padding padding1 = new(1); 9630Padding padding2 = new(2);
System\Windows\Forms\DataGridViewCellStyleTests.cs (4)
483yield return new object[] { new Padding(-1), Padding.Empty }; 484yield return new object[] { new Padding(-2), Padding.Empty }; 485yield return new object[] { new Padding(2), new Padding(2) };
System\Windows\Forms\DataGridViewTests.cs (2)
3516Padding padding1 = new(10); 3517Padding padding2 = new(20);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (2)
58Assert.Equal(new Padding(3), control.DefaultMargin); 89Assert.Equal(new Padding(3), control.Margin);
System\Windows\Forms\DateTimePickerTests.cs (4)
62Assert.Equal(new Padding(3), control.DefaultMargin); 90Assert.Equal(new Padding(3), control.Margin); 831control.Padding = new(10); 835control.Padding = new(20);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (2)
70Assert.Equal(new Padding(3), control.DefaultMargin); 116Assert.Equal(new Padding(3), control.Margin);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (2)
56Assert.Equal(new Padding(3), control.DefaultMargin); 96Assert.Equal(new Padding(3), control.Margin);
System\Windows\Forms\DomainUpDownTests.cs (4)
80_sub.DefaultMargin.Should().Be(new Padding(3)); 118_sub.Margin.Should().Be(new Padding(3)); 240Padding padding1 = new(1); 251Padding padding2 = new(2);
System\Windows\Forms\FlowLayoutPanelTests.cs (2)
53Assert.Equal(new Padding(3), control.DefaultMargin); 89Assert.Equal(new Padding(3), control.Margin);
System\Windows\Forms\FormTests.cs (2)
69Assert.Equal(new Padding(3), control.DefaultMargin); 118Assert.Equal(new Padding(3), control.Margin);
System\Windows\Forms\GroupBoxTests.cs (4)
50Assert.Equal(new Padding(3), control.DefaultMargin); 53Assert.Equal(new Padding(3), control.DefaultPadding); 77Assert.Equal(new Padding(3), control.Margin); 80Assert.Equal(new Padding(3), control.Padding);
System\Windows\Forms\ListBoxTests.cs (4)
56Assert.Equal(new Padding(3), control.DefaultMargin); 93Assert.Equal(new Padding(3), control.Margin); 2025Padding padding1 = new(1); 2036Padding padding2 = new(2);
System\Windows\Forms\ListControlTests.cs (2)
53Assert.Equal(new Padding(3), control.DefaultMargin); 83Assert.Equal(new Padding(3), control.Margin);
System\Windows\Forms\ListViewTests.cs (2)
65Assert.Equal(new Padding(3), control.DefaultMargin); 109Assert.Equal(new Padding(3), control.Margin);
System\Windows\Forms\MdiClientTests.cs (1)
61Assert.Equal(new Padding(3), control.Margin);
System\Windows\Forms\MonthCalendarTests.cs (4)
63Assert.Equal(new Padding(9), control.DefaultMargin); 94Assert.Equal(new Padding(9), control.Margin); 1693Padding padding1 = new(1); 1704Padding padding2 = new(2);
System\Windows\Forms\PaddingConverterTests.cs (6)
28yield return new object[] { " 1 , 1, 1, 1 ", new Padding(1) }; 127yield return new object[] { new Padding(1), 1, new Padding(1, 2, 3, 4) }; 128yield return new object[] { new Padding(1), 2, new Padding(2) }; 130yield return new object[] { new Padding(1, 2, 3, 4), 1, new Padding(1) }; 357.Returns(new ClassWithPadding { Padding = new(1) });
System\Windows\Forms\PaddingTests.cs (16)
30Padding padding = new(all); 115Padding padding = new(1); 136Padding padding = new(2) 186Padding padding = new(5) 236Padding padding = new(5) 286Padding padding = new(5) 336Padding padding = new(5) 375yield return new object[] { new Padding(1), new Padding(1), true }; 376yield return new object[] { new Padding(1), new Padding(1, 1, 1, 1), true }; 377yield return new object[] { new Padding(1), new Padding(1, 2, 1, 1), false }; 378yield return new object[] { new Padding(1), new Padding(1, 1, 3, 1), false }; 379yield return new object[] { new Padding(1), new Padding(1, 1, 1, 4), false }; 385yield return new object[] { new Padding(1, 2, 3, 4), new Padding(1), false }; 415Padding padding = new(1); 422Padding padding = new(1);
System\Windows\Forms\PanelTests.cs (2)
54Assert.Equal(new Padding(3), control.DefaultMargin); 89Assert.Equal(new Padding(3), control.Margin);
System\Windows\Forms\PictureBoxTests.cs (2)
53Assert.Equal(new Padding(3), control.DefaultMargin); 84Assert.Equal(new Padding(3), control.Margin);
System\Windows\Forms\ProgressBarTests.cs (3)
49Assert.Equal(new Padding(3), control.DefaultMargin); 1158Padding padding1 = new(1); 1169Padding padding2 = new(2);
System\Windows\Forms\PropertyGridTests.cs (4)
80Assert.Equal(new Padding(3), control.DefaultMargin); 124Assert.Equal(new Padding(3), control.Margin); 2291Padding padding1 = new(1); 2302Padding padding2 = new(2);
System\Windows\Forms\RadioButtonTests.cs (2)
55Assert.Equal(new Padding(3), control.DefaultMargin); 90Assert.Equal(new Padding(3), control.Margin);
System\Windows\Forms\RichTextBoxTests.cs (2)
64Assert.Equal(new Padding(3), control.DefaultMargin); 96Assert.Equal(new Padding(3), control.Margin);
System\Windows\Forms\ScrollableControlTests.cs (4)
53Assert.Equal(new Padding(3), control.DefaultMargin); 88Assert.Equal(new Padding(3), control.Margin); 828Padding padding1 = new(1); 839Padding padding2 = new(2);
System\Windows\Forms\SplitterTests.cs (2)
49Assert.Equal(new Padding(3), control.DefaultMargin); 75Assert.Equal(new Padding(3), control.Margin);
System\Windows\Forms\StatusStripTests.cs (4)
399yield return new object[] { new Padding(1), new Padding(1), 1, 1 }; 443Padding padding1 = new(1); 454Padding padding2 = new(2);
System\Windows\Forms\TabControlTests.cs (2)
51Assert.Equal(new Padding(3), control.DefaultMargin); 80Assert.Equal(new Padding(3), control.Margin);
System\Windows\Forms\TableLayoutPanelTests.cs (2)
59Assert.Equal(new Padding(3), control.DefaultMargin); 97Assert.Equal(new Padding(3), control.Margin);
System\Windows\Forms\TabPageTests.cs (4)
59Assert.Equal(new Padding(3), control.DefaultMargin); 94Assert.Equal(new Padding(3), control.Margin); 168Assert.Equal(new Padding(3), control.DefaultMargin); 203Assert.Equal(new Padding(3), control.Margin);
System\Windows\Forms\ToolStripContentPanelTests.cs (2)
56Assert.Equal(new Padding(3), control.DefaultMargin); 91Assert.Equal(new Padding(3), control.Margin);
System\Windows\Forms\ToolStripItemTests.cs (7)
2037yield return new object[] { new Padding(-23), new Rectangle(2, 2, 19, 19) }; 2038yield return new object[] { new Padding(-24), new Rectangle(2, 2, 19, 19) }; 2039yield return new object[] { new Padding(2), new Rectangle(0, 0, 23, 23) }; 2040yield return new object[] { new Padding(23), new Rectangle(-21, -21, 65, 65) }; 2041yield return new object[] { new Padding(24), new Rectangle(-22, -22, 67, 67) }; 6737yield return new object[] { new Padding(1), new Padding(1), 1, 1 };
System\Windows\Forms\ToolStripMenuItemTests.cs (2)
292Margin = new Padding(1), 297Padding = new Padding(2),
System\Windows\Forms\ToolStripTests.cs (1)
7453using ToolStrip toolStrip = new() { GripMargin = new Padding(1) };
System\Windows\Forms\TreeViewTests.cs (4)
51Assert.Equal(new Padding(3), control.DefaultMargin); 88Assert.Equal(new Padding(3), control.Margin); 3044Padding padding1 = new(1); 3055Padding padding2 = new(2);
System\Windows\Forms\UpDownBaseTests.cs (2)
67Assert.Equal(new Padding(3), control.DefaultMargin); 103Assert.Equal(new Padding(3), control.Margin);
System\Windows\Forms\UserControlTests.cs (2)
60Assert.Equal(new Padding(3), control.DefaultMargin); 95Assert.Equal(new Padding(3), control.Margin);
System\Windows\Forms\WebBrowserTests.cs (4)
48Assert.Equal(new Padding(3), control.DefaultMargin); 72Assert.Equal(new Padding(3), control.Margin); 1374Padding padding1 = new(1); 1385Padding padding2 = new(2);
TextBoxBaseTests.cs (2)
2252Padding padding1 = new(1); 2263Padding padding2 = new(2);
TextBoxTests.cs (2)
57Assert.Equal(new Padding(3), control.DefaultMargin); 83Assert.Equal(new Padding(3), control.Margin);
TrackBarTests.cs (4)
50Assert.Equal(new Padding(3), control.DefaultMargin); 77Assert.Equal(new Padding(3), control.Margin); 1524Padding padding1 = new(1); 1535Padding padding2 = new(2);
System.Windows.Forms.TestUtilities (3)
CommonTestHelperEx.cs (3)
81new(1), 93{ new Padding(1), new Padding(1) },
System.Windows.Forms.UI.IntegrationTests (1)
Dpi\SplitContainerTests.cs (1)
50Margin = new Padding(0),
WinFormsControlsTest (5)
Dialogs.Designer.cs (1)
55this.propertyGrid1.Margin = new System.Windows.Forms.Padding(2);
MainForm.Designer.cs (1)
53this.Padding = new System.Windows.Forms.Padding(8);
MessageBoxes.Designer.cs (1)
43this.propertyGrid1.Margin = new System.Windows.Forms.Padding(2);
ScrollableControls.Designer.cs (2)
326tabPage1.Padding = new Padding(3); 345tabPage2.Padding = new Padding(3);