1113 instantiations of Padding
Accessibility_Core_App (213)
CommonControl1.Designer.cs (57)
106this.groupBox1.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); 108this.groupBox1.Padding = new System.Windows.Forms.Padding(7, 6, 7, 6); 118this.button12.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); 129this.button1.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); 141this.button10.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); 151this.button9.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); 162this.button8.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); 173this.button3.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); 185this.button4.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); 197this.button5.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); 208this.button2.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); 219this.button6.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); 234this.groupBox2.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); 236this.groupBox2.Padding = new System.Windows.Forms.Padding(7, 6, 7, 6); 250this.checkedListBox1.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); 259this.label7.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0); 269this.checkBox3.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); 281this.checkBox2.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); 294this.checkBox1.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); 308this.groupBox3.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); 310this.groupBox3.Padding = new System.Windows.Forms.Padding(7, 6, 7, 6); 327this.comboBox2.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); 336this.label11.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0); 352this.comboBox1.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); 361this.label10.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0); 372this.groupBox4.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); 374this.groupBox4.Padding = new System.Windows.Forms.Padding(7, 6, 7, 6); 388this.listView1.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); 398this.label8.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0); 419this.groupBox5.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); 421this.groupBox5.Padding = new System.Windows.Forms.Padding(7, 6, 7, 6); 432this.linkLabel6.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0); 444this.linkLabel5.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0); 456this.linkLabel4.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0); 468this.linkLabel3.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0); 480this.label6.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0); 491this.label5.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0); 502this.label4.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0); 513this.label3.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0); 522this.linkLabel2.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0); 533this.linkLabel1.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0); 543this.label2.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0); 553this.label1.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0); 564this.groupBox6.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); 566this.groupBox6.Padding = new System.Windows.Forms.Padding(7, 6, 7, 6); 582this.listBox1.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); 591this.label12.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0); 602this.groupBox7.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); 604this.groupBox7.Padding = new System.Windows.Forms.Padding(7, 6, 7, 6); 613this.maskedTextBox1.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); 622this.label9.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0); 634this.groupBox8.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); 636this.groupBox8.Padding = new System.Windows.Forms.Padding(7, 6, 7, 6); 646this.dateTimePicker3.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); 656this.dateTimePicker2.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); 671this.dateTimePicker1.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); 691this.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6);
CommonControl2.Designer.cs (18)
70this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 80this.pictureBox1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 91this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 101this.progressBar1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 112this.radioButton1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 124this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 134this.richTextBox1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 144this.label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 158this.textBox1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 167this.label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 176this.treeView1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 204this.label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 213this.webBrowser1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 225this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 234this.monthCalendar1.Margin = new System.Windows.Forms.Padding(10); 242this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 251this.numericUpDown1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 279this.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
ContainerControls.Designer.cs (68)
129this.flowLayoutPanel2.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 137this.button2.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 147this.button5.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 157this.button6.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 168this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 178this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 188this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 198this.groupBox1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 200this.groupBox1.Padding = new System.Windows.Forms.Padding(4, 3, 4, 3); 209this.button7.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 221this.groupBox2.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 223this.groupBox2.Padding = new System.Windows.Forms.Padding(4, 3, 4, 3); 232this.button8.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 244this.groupBox3.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 246this.groupBox3.Padding = new System.Windows.Forms.Padding(4, 3, 4, 3); 255this.button9.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 267this.groupBox4.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 269this.groupBox4.Padding = new System.Windows.Forms.Padding(4, 3, 4, 3); 278this.button10.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 289this.label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 299this.label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 411this.label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 422this.tabControl5.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 432this.tabPage9.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 434this.tabPage9.Padding = new System.Windows.Forms.Padding(4, 3, 4, 3); 443this.button19.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 454this.tabPage10.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 456this.tabPage10.Padding = new System.Windows.Forms.Padding(4, 3, 4, 3); 468this.tabControl6.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 478this.tabPage11.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 480this.tabPage11.Padding = new System.Windows.Forms.Padding(4, 3, 4, 3); 489this.button20.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 500this.tabPage12.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 502this.tabPage12.Padding = new System.Windows.Forms.Padding(4, 3, 4, 3); 511this.button21.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 527this.flowLayoutPanel1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 535this.button4.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 545this.button1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 555this.button3.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 566this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 577this.panel2.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 587this.tabControl2.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 596this.tabPage1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 598this.tabPage1.Padding = new System.Windows.Forms.Padding(4, 3, 4, 3); 608this.tabPage2.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 610this.tabPage2.Padding = new System.Windows.Forms.Padding(4, 3, 4, 3); 619this.button12.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 630this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 642this.panel1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 652this.tabControl1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 662this.tabPage3.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 664this.tabPage3.Padding = new System.Windows.Forms.Padding(4, 3, 4, 3); 673this.button11.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 684this.tabPage4.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 686this.tabPage4.Padding = new System.Windows.Forms.Padding(4, 3, 4, 3); 695this.button13.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 710this.flowLayoutPanel3.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 718this.button14.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 728this.button22.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 738this.button23.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 749this.panel3.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 759this.tabControl3.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 768this.tabPage5.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 770this.tabPage5.Padding = new System.Windows.Forms.Padding(4, 3, 4, 3); 780this.tabPage6.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 782this.tabPage6.Padding = new System.Windows.Forms.Padding(4, 3, 4, 3); 791this.button24.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 823this.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
ContainerControls2.Designer.cs (24)
76this.label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 85this.splitContainer1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 108this.button15.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 118this.button16.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 129this.label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 145this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 262this.label13.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 272this.flowLayoutPanel4.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 281this.label14.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 292this.groupBox5.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 294this.groupBox5.Padding = new System.Windows.Forms.Padding(4, 3, 4, 3); 304this.label15.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 314this.panel4.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 323this.label16.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 332this.splitContainer2.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 351this.label17.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 362this.tabControl4.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 372this.tabPage7.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 374this.tabPage7.Padding = new System.Windows.Forms.Padding(4, 3, 4, 3); 383this.tabPage8.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 385this.tabPage8.Padding = new System.Windows.Forms.Padding(4, 3, 4, 3); 394this.label18.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 407this.tableLayoutPanel2.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 437this.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
DataControls.Designer.cs (3)
277this.dataGridView1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 341this.dataGridView2.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 356this.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
DialogControls.Designer.cs (5)
39this.ColorDialog.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 50this.FolderBrowserDialog.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 61this.OpenFileDialog.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 72this.SaveFileDialog.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 89this.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
Main.Designer.cs (10)
48this.button1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 59this.button2.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 70this.button3.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 81this.button4.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 92this.button5.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 103this.button6.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 114this.button7.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 125this.button8.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 136this.button9.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 180this.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
Menu_Toolbars_controls.Designer.cs (3)
113menuStrip1.Padding = new Padding(8, 3, 0, 3); 424statusStrip1.Padding = new Padding(1, 0, 18, 0); 599Margin = new Padding(5, 4, 5, 4);
MenuForm.Designer.cs (3)
38this.button1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 49this.button2.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 64this.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
PrintingControls.Designer.cs (9)
74this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 83this.txtPrint.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 92this.btnSetting.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 103this.btnPreView.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 114this.btnPrint.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 125this.button1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 137this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 149this.printPreviewControl1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 170this.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
RemainingControls.Designer.cs (7)
64this.propertyGrid1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 72this.propertyGrid2.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 81this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 90this.domainUpDown1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 100this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 109this.trackBar1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 127this.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
ToolStripContainer.Designer.cs (6)
104this.toolStripContainer2.ContentPanel.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 107this.toolStripContainer2.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 138this.toolStrip1.Padding = new System.Windows.Forms.Padding(0, 0, 2, 0); 281this.statusStrip1.Padding = new System.Windows.Forms.Padding(1, 0, 16, 0); 582this.button1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 597this.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
DesignSurface (10)
MainForm.cs (1)
435Margin = new Padding(4),
MainForm.Designer.cs (9)
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); 169this.menuStrip1.Padding = new System.Windows.Forms.Padding(8, 2, 0, 2); 301this.Margin = new System.Windows.Forms.Padding(4);
PresentationUI (95)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (32)
113this._okButton.Margin = new System.Windows.Forms.Padding(0,0,2,0); 115this._okButton.Padding = new System.Windows.Forms.Padding(0, 3, 0, 0); 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); 371this._description.Margin = new System.Windows.Forms.Padding(0,3,3,0); 382this._keywords.Margin = new System.Windows.Forms.Padding(0,3,3,0); 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); 516this._sizeLabel.Margin = new System.Windows.Forms.Padding(0,3,3,3); 528this._documentDetailBox.Margin = new System.Windows.Forms.Padding(3, 3, 10, 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); 651this._fileSystemBox.Margin = new System.Windows.Forms.Padding(3, 3, 10, 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 (10)
63_buttomControlLayoutpanel.Margin = new System.Windows.Forms.Padding(10, 2, 0, 0); 72_addButton.Padding = new System.Windows.Forms.Padding(20, 0, 20, 0); 82_cancelButton.Padding = new System.Windows.Forms.Padding(20, 0, 20, 0); 89_divider.Margin = new System.Windows.Forms.Padding(0,20,0,5); 107_userInputTableLayoutPanel.Margin = new System.Windows.Forms.Padding(0); 145_signatureAppliedByDateLabel.Margin = new System.Windows.Forms.Padding(3, 10, 3, 0); 154_requestSignerNameLabel.Margin = new System.Windows.Forms.Padding(3, 10, 3, 0); 163_requestLocationLabel.Margin = new System.Windows.Forms.Padding(3, 10, 3, 0); 181_intentLabel.Margin = new System.Windows.Forms.Padding(3, 10, 3, 0); 205_mainDialogTableLayoutPanel.Margin = new System.Windows.Forms.Padding(10);
MS\Internal\Documents\RMEnrollmentPage1.Designer.cs (7)
111_label1.Margin = new System.Windows.Forms.Padding(30, 5, 3, 0); 121_label2.Margin = new System.Windows.Forms.Padding(30, 0, 3, 0); 131_label3.Margin = new System.Windows.Forms.Padding(30, 10, 3, 0); 141_privacyLabel.Margin = new System.Windows.Forms.Padding(30, 0, 3, 0); 152_instructionlabel.Margin = new System.Windows.Forms.Padding(30, 8, 3, 0); 189_nextButton.Margin = new System.Windows.Forms.Padding(10); 198_cancelButton.Margin = new System.Windows.Forms.Padding(10);
MS\Internal\Documents\RMEnrollmentPage2.Designer.cs (9)
76this._nextButton.Margin = new System.Windows.Forms.Padding(10); 85this._cancelButton.Margin = new System.Windows.Forms.Padding(10); 108this._label1.Margin = new System.Windows.Forms.Padding(10, 10, 3, 0); 120this._flowLayoutPanel3.Margin = new System.Windows.Forms.Padding(10, 10, 10, 3); 129this._pictureBox1.Margin = new System.Windows.Forms.Padding(5); 139this._label2.Margin = new System.Windows.Forms.Padding(5); 156this._tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(50, 15, 3, 3); 182this._pictureBox2.Margin = new System.Windows.Forms.Padding(3, 3, 3, 15); 201this._pictureBox4.Margin = new System.Windows.Forms.Padding(3, 3, 3, 15);
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.cs (1)
192permissionLabel.Margin = new Padding(13, 0, 3, 0);
MS\Internal\Documents\RMPermissions.Designer.cs (3)
68this.mainContentFlowPanel.Padding = new System.Windows.Forms.Padding(5); 88this.authenticatedAsLabel.Margin = new System.Windows.Forms.Padding(13, 3, 3, 3); 121this.requestFromLabel.Margin = new System.Windows.Forms.Padding(13, 3, 3, 3);
MS\Internal\Documents\RMPublishingDialog.Designer.cs (11)
86this.flowLayoutPanelMain.Padding = new System.Windows.Forms.Padding(8); 122this.groupBoxMainContent.Margin = new System.Windows.Forms.Padding(5); 134this.flowLayoutPanelUnrestricted.Padding = new System.Windows.Forms.Padding(5, 18, 5, 5); 146this.flowLayoutPanelPermissions.Padding = new System.Windows.Forms.Padding(5, 18, 5, 5); 156this.flowLayoutPanelTemplate.Padding = new System.Windows.Forms.Padding(5, 18, 5, 5); 164this.textBoxUnrestrictedText.Padding = new System.Windows.Forms.Padding(3); 173this.labelSelectTemplate.Padding = new System.Windows.Forms.Padding(3); 179this.comboBoxTemplates.Margin = new System.Windows.Forms.Padding(13, 3, 3, 3); 203this.textBoxUserName.Margin = new System.Windows.Forms.Padding(3, 6, 3, 3); 265this.textBoxPermissionsContact.Margin = new System.Windows.Forms.Padding(23, 3, 3, 3); 290this.datePickerValidUntil.Margin = new System.Windows.Forms.Padding(3, 0, 3, 3);
MS\Internal\Documents\SignatureSummaryDialog.cs (3)
229Padding columnMargin = new Padding(0); 230Padding columnPadding = new Padding(CellPadding.Left, 3, 0, 3); 803private Padding _cellPadding = new Padding(10);
MS\Internal\Documents\SignatureSummaryDialog.Designer.cs (5)
80_flowpanelMiddleControls.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); 81_flowpanelMiddleControls.Padding = new System.Windows.Forms.Padding(0, 5, 0, 0); 92_flowpanelBottomControls.Margin = new System.Windows.Forms.Padding(0); 94_flowpanelBottomControls.Padding = new System.Windows.Forms.Padding(0, 5, 0, 0); 192_mainLayoutTable.Margin = new System.Windows.Forms.Padding(5);
MS\Internal\Documents\SigningDialog.Designer.cs (10)
111_signerlabel.Margin = new System.Windows.Forms.Padding(3, 10, 3, 20); 149_actionlabel.Margin = new System.Windows.Forms.Padding(3, 10, 3, 0); 158_locationLabel.Margin = new System.Windows.Forms.Padding(3, 10, 3, 0); 174_divider.Margin = new System.Windows.Forms.Padding(0, 15, 0, 0); 187_buttonflowLayoutPanel.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); 189_buttonflowLayoutPanel.Padding = new System.Windows.Forms.Padding(5, 5, 0, 5); 202_cancelButton.Padding = new System.Windows.Forms.Padding(15, 0, 15, 0); 216_signButton.Padding = new System.Windows.Forms.Padding(15, 0, 15, 0); 230_signSaveAsButton.Padding = new System.Windows.Forms.Padding(15, 0, 15, 0); 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 (49)
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
135protected override Padding DefaultPadding => new(3);
System\Windows\Forms\Controls\Labels\Label.cs (1)
312protected override Padding DefaultMargin => new(3, 0, 3, 0);
System\Windows\Forms\Controls\Menus\MenuStrip.cs (6)
63ScaleHelper.ScaleToDpi(new Padding(2, 2, 0, 2), DeviceDpi) : 64new Padding(2, 2, 0, 2); 79? ScaleHelper.ScaleToDpi(new Padding(3, 2, 0, 2), DeviceDpi) 80: new Padding(3, 2, 0, 2) 82? ScaleHelper.ScaleToDpi(new Padding(6, 2, 0, 2), DeviceDpi) 83: new Padding(6, 2, 0, 2);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
323protected override Padding DefaultMargin => new(9);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (3)
128Margin = new(3, 30, 3, 0), 149Margin = new(12, 3, 29, 3), 174Margin = new(0, 3, 3, 3),
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (3)
78return new Padding(1, 0, 14, 0); 82return new Padding(14, 0, 1, 0); 90return new Padding(1, 3, 1, DefaultSize.Height);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
65private static readonly Padding s_logicalDefaultPadding = new(0, 0, 1, 0); 66private static readonly Padding s_logicalDefaultGripMargin = new(2);
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (2)
22private static readonly Padding s_dropDownPadding = new(2); 23private static readonly Padding s_padding = new(1, 0, 1, 0);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
35private static readonly Padding s_defaultPadding = new(1, 2, 1, 2);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (6)
82return new Padding(1, 2, padding, 2); 85return new Padding(padding, 2, 1, 2); 99rect = LayoutUtils.InflateRect(rect, new Padding(0, Padding.Top, 0, Padding.Bottom)); 602_textPadding = ScaleHelper.ScaleToDpi(new Padding(8, 1, 9, 1), dpi); 603_checkPadding = ScaleHelper.ScaleToDpi(new Padding(5, 2, 2, 2), dpi); 604_arrowPadding = ScaleHelper.ScaleToDpi(new Padding(0, 0, 8, 0), dpi);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (2)
3120_defaultMargin = ScaleHelper.ScaleToDpi(new Padding(0, 1, 0, 2), dpi); 3121_defaultStatusStripMargin = ScaleHelper.ScaleToDpi(new Padding(0, 2, 0, 0), dpi);
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (2)
51private static readonly Padding s_defaultPadding = new(4, 0, 4, 0); 52private static readonly Padding s_defaultDropDownPadding = new(0, 1, 0, 1);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
31internal static readonly Padding s_dragMargin = new(10);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (5)
34private Padding _scaledDropDownMenuItemPaintPadding = new(DROP_DOWN_MENU_ITEM_PAINT_PADDING_SIZE + 1, 0, DROP_DOWN_MENU_ITEM_PAINT_PADDING_SIZE, 0); 287Padding deflatePadding = item.RightToLeft == RightToLeft.Yes ? new Padding(0, 1, 1, 1) : new Padding(1, 1, 0, 1); 1615_scaledDropDownMenuItemPaintPadding = new Padding(scaledSize + 1, 0, scaledSize, 0); 1638_scaledDropDownMenuItemPaintPadding = new Padding(scaledSize + 1, 0, scaledSize, 0);
System\Windows\Forms\Controls\ToolStrips\ToolStripProgressBar.cs (2)
25_defaultMargin = ScaleHelper.ScaleToDpi(new Padding(1, 2, 1, 1), ScaleHelper.InitialSystemDpi); 26_defaultStatusStripMargin = ScaleHelper.ScaleToDpi(new Padding(1, 3, 1, 3), ScaleHelper.InitialSystemDpi);
System\Windows\Forms\Controls\ToolStrips\ToolStripStatusLabel.cs (1)
18private Padding _defaultMargin = ScaleHelper.ScaleToDpi(new Padding(0, 3, 0, 2), ScaleHelper.InitialSystemDpi);
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (2)
36_defaultMargin = new(defaultMargin, 0, defaultMargin, 0); 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\MDI\MDIWindowDialog.cs (2)
111_okButton.Margin = new Padding(0, 0, 3, 0); 118_cancelButton.Margin = new Padding(3, 0, 0, 0);
System\Windows\Forms\Panels\SplitterPanel.cs (1)
153protected override Padding DefaultMargin => new(0, 0, 0, 0);
System\Windows\Forms\Scrolling\ScrollableControl.DockPaddingEdgesConverter.cs (1)
88_owner.Padding = new Padding(value);
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (1)
635return new Padding(margins.cxLeftWidth, margins.cyTopHeight, margins.cxRightWidth, margins.cyBottomHeight);
System.Windows.Forms.Design (159)
System\ComponentModel\Design\BinaryEditor.BinaryUI.cs (12)
184_buttonOK.Margin = new Padding(0, 0, 3, 0); 187_buttonOK.Padding = new Padding(10, 0, 10, 0); 194_buttonSave.Margin = new Padding(3, 0, 0, 0); 197_buttonSave.Padding = new Padding(10, 0, 10, 0); 205_groupBoxMode.Margin = new Padding(0, 3, 0, 3); 207_groupBoxMode.Padding = new Padding(0); 221_radioButtonsTableLayoutPanel.Margin = new Padding(9); 228_radioUnicode.Margin = new Padding(3, 0, 0, 0); 236_radioAuto.Margin = new Padding(0, 0, 3, 0); 243_radioAnsi.Margin = new Padding(3, 0, 3, 0); 250_radioHex.Margin = new Padding(3, 0, 3, 0); 262_okSaveTableLayoutPanel.Margin = new Padding(0, 9, 0, 0);
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (10)
426_membersLabel.Margin = new Padding(0, 0, 3, 3); 433_listBox.Margin = new Padding(0, 3, 3, 3); 445_propertiesLabel.Margin = new Padding(0, 0, 3, 3); 450_propertyGrid.Margin = new Padding(3, 3, 0, 3); 455_addButton.Margin = new Padding(0, 3, 3, 3); 459_removeButton.Margin = new Padding(3, 3, 0, 3); 464_okButton.Margin = new Padding(0, 3, 3, 0); 469_cancelButton.Margin = new Padding(3, 3, 0, 0); 476_okCancelTableLayoutPanel.Margin = new Padding(3, 3, 0, 0); 493_addRemoveTableLayoutPanel.Margin = new Padding(0, 3, 3, 3);
System\ComponentModel\Design\ToolStripContainerActionList.cs (1)
63panel.Padding = new Padding(0);
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (5)
50_relatedControl.Padding = new Padding(0, 0, 0, DefaultBounds); 53_relatedControl.Padding = new Padding(0, 0, DefaultBounds, 0); 56_relatedControl.Padding = new Padding(DefaultBounds, 0, 0, 0); 59_relatedControl.Padding = new Padding(0, DefaultBounds, 0, 0); 93_relatedControl.Padding = new Padding(0);
System\Windows\Forms\Design\BorderSidesEditor.BorderSidesEditorUI.cs (8)
111_tableLayoutPanel.Margin = new Padding(0); 117_noneCheckBox.Margin = new Padding(3, 3, 3, 1); 123_allCheckBox.Margin = new Padding(3, 3, 3, 1); 128_topCheckBox.Margin = new Padding(20, 1, 3, 1); 134_bottomCheckBox.Margin = new Padding(20, 1, 3, 1); 140_rightCheckBox.Margin = new Padding(20, 1, 3, 1); 146_leftCheckBox.Margin = new Padding(20, 1, 3, 1); 159Padding = new Padding(1, 1, 1, 1);
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (18)
290_dataBoundColumnRadioButton.Margin = new Padding(0); 313_overarchingTableLayoutPanel.Margin = new Padding(12, 12, 12, 13); 337_checkBoxesTableLayoutPanel.Margin = new Padding(0); 345_frozenCheckBox.Margin = new Padding(0); 353_visibleCheckBox.Margin = new Padding(0); 359_readOnlyCheckBox.Margin = new Padding(0); 369_okCancelTableLayoutPanel.Margin = new Padding(0, 6, 0, 0); 376_addButton.Margin = new Padding(0, 0, 3, 0); 383_cancelButton.Margin = new Padding(3, 0, 0, 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 (11)
146_cellStyleProperties.Margin = new Padding(0, 0, 0, 3); 168_sampleViewGridsTableLayoutPanel.Margin = new Padding(0, 3, 0, 0); 174_normalLabel.Margin = new Padding(0); 180_sampleDataGridView.Margin = new Padding(0); 187_selectedLabel.Margin = new Padding(0); 193_sampleDataGridViewSelected.Margin = new Padding(0); 199_label1.Margin = new Padding(0, 0, 0, 3); 204_okButton.Margin = new Padding(0, 0, 3, 0); 209_cancelButton.Margin = new Padding(3, 0, 0, 0); 217_okCancelTableLayoutPanel.Margin = new Padding(0, 3, 0, 0); 223_previewGroupBox.Margin = new Padding(0, 3, 0, 3);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (16)
495_addButton.Margin = new Padding(0, 0, 3, 0); 497_addButton.Padding = new Padding(10, 0, 10, 0); 503_deleteButton.Margin = new Padding(3, 0, 0, 0); 505_deleteButton.Padding = new Padding(10, 0, 10, 0); 511_moveDown.Margin = new Padding(0, 1, 18, 0); 518_moveUp.Margin = new Padding(0, 0, 18, 1); 526_selectedColumns.Margin = new Padding(0, 2, 3, 3); 561_addRemoveTableLayoutPanel.Margin = new Padding(0, 3, 3, 3); 568_selectedColumnsLabel.Margin = new Padding(0); 574_propertyGridLabel.Margin = new Padding(3, 0, 0, 0); 581_propertyGrid1.Margin = new Padding(3, 2, 0, 3); 602_cancelButton.Margin = new Padding(3, 0, 0, 0); 604_cancelButton.Padding = new Padding(10, 0, 10, 0); 610_okButton.Margin = new Padding(0, 0, 3, 0); 612_okButton.Padding = new Padding(10, 0, 10, 0); 626Padding = new Padding(12);
System\Windows\Forms\Design\FormatControl.cs (1)
311Margin = new Padding(0, 3, 0, 3),
System\Windows\Forms\Design\FormatStringDialog.cs (2)
175_formatControl1.Margin = new Padding(0); 217Padding = new Padding(0);
System\Windows\Forms\Design\LinkAreaEditor.LinkAreaUI.cs (5)
63_caption.Margin = new Padding(3, 1, 3, 0); 68_sampleEdit.Margin = new Padding(3, 2, 3, 3); 76_okButton.Margin = new Padding(0, 0, 2, 0); 82_cancelButton.Margin = new Padding(3, 0, 0, 0); 92_okCancelTableLayoutPanel.Margin = new Padding(3, 1, 3, 3);
System\Windows\Forms\Design\MaskDesignerDialog.cs (13)
147_maskedTextBox.Margin = new Padding(3, 3, 18, 0); 153_lblHeader.Margin = new Padding(0, 0, 0, 3); 167_listViewCannedMasks.Margin = new Padding(0, 3, 0, 3); 189_btnOK.Margin = new Padding(0, 0, 3, 0); 192_btnOK.Padding = new Padding(10, 0, 10, 0); 198_btnCancel.Margin = new Padding(3, 0, 0, 0); 201_btnCancel.Padding = new Padding(10, 0, 10, 0); 208_checkBoxUseValidatingType.Margin = new Padding(0, 0, 0, 3); 222_maskTryItTable.Margin = new Padding(0, 3, 0, 3); 230_lblMask.Margin = new Padding(0, 0, 3, 3); 236_txtBoxMask.Margin = new Padding(3, 0, 18, 3); 242_lblTryIt.Margin = new Padding(0, 3, 3, 0); 267_okCancelTableLayoutPanel.Margin = new Padding(0, 6, 0, 0);
System\Windows\Forms\Design\MaskedTextBoxTextEditorDropDown.cs (1)
53Padding = new Padding(16);
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (3)
158_ctrlCheckBox.Margin = new Padding(12, 3, 3, 3); 199_keyComboBox.Margin = new Padding(12, 4, 3, 3); 218Padding = new Padding(4);
System\Windows\Forms\Design\StyleEditorForm.cs (29)
204_addRemoveInsertTableLayoutPanel.Margin = new Padding(0, 3, 3, 3); 211_addButton.Margin = new Padding(0, 0, 4, 0); 214_addButton.Padding = new Padding(10, 0, 10, 0); 219_removeButton.Margin = new Padding(2, 0, 2, 0); 222_removeButton.Padding = new Padding(10, 0, 10, 0); 227_insertButton.Margin = new Padding(4, 0, 0, 0); 230_insertButton.Padding = new Padding(10, 0, 10, 0); 239_okCancelTableLayoutPanel.Margin = new Padding(0, 6, 0, 0); 246_okButton.Margin = new Padding(0, 0, 3, 0); 249_okButton.Padding = new Padding(10, 0, 10, 0); 255_cancelButton.Margin = new Padding(3, 0, 0, 0); 258_cancelButton.Padding = new Padding(10, 0, 10, 0); 283_showTableLayoutPanel.Margin = new Padding(0, 0, 3, 3); 289_memberTypeLabel.Margin = new Padding(0, 0, 3, 0); 301_columnsOrRowsComboBox.Margin = new Padding(3, 0, 0, 0); 315_columnsAndRowsListView.Margin = new Padding(0, 3, 3, 3); 337_helperTextTableLayoutPanel.Margin = new Padding(6, 6, 0, 3); 359_helperLinkLabel1.Margin = new Padding(3, 0, 0, 3); 366_helperLinkLabel2.Margin = new Padding(3, 3, 0, 0); 374_sizeTypeGroupBox.Margin = new Padding(6, 0, 0, 3); 376_sizeTypeGroupBox.Padding = new Padding(0); 392_sizeTypeTableLayoutPanel.Margin = new Padding(9); 402_absoluteNumericUpDown.Margin = new Padding(_scaledUpDownLeftMargin, _scaledUpDownTopMargin, 0, 0); 407_absoluteRadioButton.Margin = new Padding(0, 3, 3, 0); 413_pixelsLabel.Margin = new Padding(0, 0, _scaledLabelRightMargin, 0); 418_percentLabel.Margin = new Padding(0, 0, _scaledLabelRightMargin, 0); 422_percentRadioButton.Margin = new Padding(0, 3, 3, 0); 427_autoSizedRadioButton.Margin = new Padding(0, 3, 3, 0); 435_percentNumericUpDown.Margin = new Padding(_scaledUpDownLeftMargin, _scaledUpDownTopMargin, 0, 0);
System\Windows\Forms\Design\TabControlDesigner.cs (1)
271page.Padding = new Padding(3);
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (3)
20private static Padding s_defaultPadding = new(0); 264Control.Padding = new Padding(0, 0, 25, 25); 372Control.Padding = new Padding(0);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (6)
890_centerTextBox.Margin = new Padding(1, 2, 1, 3); 894_centerTextBox.Margin = new Padding(1); 1374Margin = new Padding(1) 1379_centerLabel.Margin = new Padding(1, 2, 1, 3); 1382_centerLabel.Padding = new Padding(0, 1, 0, 0); 1402Margin = new Padding(1)
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (14)
363_okCancelPanel.Margin = new Padding(PIXEL_3, PIXEL_3, 0, 0); 364_okButton.Margin = new Padding(0, 0, PIXEL_3, 0); 365_btnCancel.Margin = new Padding(PIXEL_3, 0, 0, 0); 366_nodeControlPanel.Margin = new Padding(0, PIXEL_3, PIXEL_3, PIXEL_3); 367_btnAddRoot.Margin = new Padding(0, 0, PIXEL_3, 0); 368_btnAddChild.Margin = new Padding(PIXEL_3, 0, 0, 0); 369_btnDelete.Margin = new Padding(0, PIXEL_3, 0, 0); 370_moveDownButton.Margin = new Padding(0, PIXEL_3, 0, PIXEL_3); 371_moveUpButton.Margin = new Padding(0, 0, 0, PIXEL_3); 372_propertyGrid1.Margin = new Padding(PIXEL_3, PIXEL_3, 0, PIXEL_3); 373_label2.Margin = new Padding(PIXEL_3, PIXEL_3, 0, PIXEL_3); 374_treeView1.Margin = new Padding(0, PIXEL_3, PIXEL_3, PIXEL_3); 375_label1.Margin = new Padding(0, PIXEL_3, PIXEL_3, PIXEL_3); 376_navigationButtonsTableLayoutPanel.Margin = new Padding(PIXEL_3, PIXEL_3, PIXEL_18, PIXEL_3);
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 (7)
System\Windows\Forms\Internals\ScaleHelper.cs (1)
285: new(
System\Windows\Forms\Padding.cs (3)
21public static readonly Padding Empty = new(0); 148new(p1.Left + p2.Left, p1.Top + p2.Top, p1.Right + p2.Right, p1.Bottom + p2.Bottom); 154new(p1.Left - p2.Left, p1.Top - p2.Top, p1.Right - p2.Right, p1.Bottom - p2.Bottom);
System\Windows\Forms\PaddingConverter.cs (3)
39? (object)new Padding(values[0], values[1], values[2], values[3]) 89return new Padding(all); 93return new Padding(
System.Windows.Forms.Tests (502)
CheckedListBoxTests.cs (7)
180yield return new object[] { new Padding(1, 2, 3, 4), new Padding(1, 2, 3, 4), 1, 1 }; 181yield return new object[] { new Padding(1), new Padding(1), 1, 1 }; 182yield return new object[] { new Padding(-1, -2, -3, -4), Padding.Empty, 1, 2 }; 228Padding padding1 = new(1); 239Padding padding2 = new(2);
NumericUpDownTests.cs (9)
369Padding padding = new(1, 2, 3, 4); 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));
SerializableTypesTests.cs (1)
248Padding padding = new(1, 2, 3, 4);
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 (14)
54Assert.Equal(new Padding(3), control.DefaultMargin); 90Assert.Equal(new Padding(3), control.Margin); 1252Padding = new Padding(1, 2, 3, 4) 1303Padding = new Padding(1, 2, 3, 4) 1335Padding = new Padding(1, 2, 3, 4), 1359Padding = new Padding(1, 2, 3, 4), 1519Padding = new Padding(1, 2, 3, 4) 1599Padding = new Padding(1, 2, 3, 4) 1631Padding = new Padding(1, 2, 3, 4), 1655Padding = new Padding(1, 2, 3, 4), 1679Padding = new Padding(1, 2, 3, 4), 1703Padding = new Padding(1, 2, 3, 4), 1727Padding = new Padding(1, 2, 3, 4), 1751Padding = new Padding(1, 2, 3, 4),
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 (38)
7673yield return new object[] { new Control(), new Padding(3) }; 7674yield return new object[] { new NonZeroDefaultMarginControl(), new Padding(1, 2, 3, 4) }; 7687protected override Padding DefaultMargin => new(1, 2, 3, 4); 7698yield return new object[] { new Padding(1, 2, 3, 4), new Padding(1, 2, 3, 4) }; 7699yield return new object[] { new Padding(1), new Padding(1) }; 7700yield return new object[] { new Padding(-1, -2, -3, -4), Padding.Empty }; 7854control.Margin = new Padding(1, 2, 3, 4); 7855Assert.Equal(new Padding(1, 2, 3, 4), control.Margin); 7859Assert.Equal(new Padding(3), control.Margin); 7870control.Margin = new Padding(1, 2, 3, 4); 7871Assert.Equal(new Padding(1, 2, 3, 4), control.Margin); 7875Assert.Equal(new Padding(3), control.Margin); 9386yield return new object[] { new NonZeroDefaultPaddingControl(), new Padding(1, 2, 3, 4) }; 9398protected override Padding DefaultPadding => new(1, 2, 3, 4); 9404yield return new object[] { new Padding(1, 2, 3, 4), new Padding(1, 2, 3, 4), 1, 1 }; 9405yield return new object[] { new Padding(1), new Padding(1), 1, 1 }; 9406yield return new object[] { new Padding(-1, -2, -3, -4), Padding.Empty, 1, 2 }; 9484yield return new object[] { false, new Padding(1, 2, 3, 4), new Padding(1, 2, 3, 4), 1, 0, 1, 0 }; 9485yield return new object[] { false, new Padding(1), new Padding(1), 1, 0, 1, 0 }; 9486yield return new object[] { false, new Padding(-1, -2, -3, -4), Padding.Empty, 1, 0, 2, 0 }; 9488yield return new object[] { true, new Padding(1, 2, 3, 4), new Padding(1, 2, 3, 4), 1, 1, 1, 1 }; 9489yield return new object[] { true, new Padding(1), new Padding(1), 1, 1, 1, 1 }; 9490yield return new object[] { true, new Padding(-1, -2, -3, -4), Padding.Empty, 1, 1, 2, 2 }; 9619Padding padding1 = new(1); 9630Padding padding2 = new(2); 9649control.Padding = new Padding(1, 2, 3, 4); 9650Assert.Equal(new Padding(1, 2, 3, 4), control.Padding); 9665control.Padding = new Padding(1, 2, 3, 4); 9666Assert.Equal(new Padding(1, 2, 3, 4), control.Padding); 9854Padding = new Padding(1, 2, 3, 4)
System\Windows\Forms\DataGridViewCellStyleTests.cs (30)
50Padding = new Padding(1, 2, 3, 4), 70Assert.Equal(new Padding(1, 2, 3, 4), style.Padding); 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) }; 486yield return new object[] { new Padding(1, 2, 3, 4), new Padding(1, 2, 3, 4) }; 487yield return new object[] { new Padding(-1, 2, 3, 4), new Padding(0, 2, 3, 4) }; 488yield return new object[] { new Padding(1, -2, 3, 4), new Padding(1, 0, 3, 4) }; 489yield return new object[] { new Padding(1, 2, -3, 4), new Padding(1, 2, 0, 4) }; 490yield return new object[] { new Padding(1, 2, 3, -4), new Padding(1, 2, 3, 0) }; 628Padding = new Padding(1, 2, 3, 4), 649Assert.Equal(new Padding(1, 2, 3, 4), style.Padding); 671Padding = new Padding(1, 2, 3, 4), 691Assert.Equal(new Padding(1, 2, 3, 4), style.Padding); 719Padding = new Padding(1, 2, 3, 4), 739Assert.Equal(new Padding(1, 2, 3, 4), style.Padding); 786Padding = new Padding(1, 2, 3, 4), 806Assert.Equal(new Padding(1, 2, 3, 4), style.Padding); 968new DataGridViewCellStyle { Padding = new Padding(1, 2, 3, 4) }, 969new DataGridViewCellStyle { Padding = new Padding(1, 2, 3, 4) }, 974new DataGridViewCellStyle { Padding = new Padding(1, 2, 3, 4) }, 975new DataGridViewCellStyle { Padding = new Padding(2, 3, 4, 5) }, 1098new DataGridViewCellStyle { Padding = new Padding(1, 2, 3, 4) }, 1135Padding = new Padding(1, 2, 3, 4),
System\Windows\Forms\DataGridViewRowTests.cs (2)
2070Padding = new Padding(1, 2, 3, 4), 2086Padding = new Padding(2, 3, 4, 5),
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\DockPaddingEdgesTests.cs (22)
24Padding = new Padding(left, top, right, bottom) 62Padding = new Padding(1, 2, 3, 4) 83Padding = new Padding(1, 2, 3, 4) 105Padding = new Padding(1, 2, 3, 4) 126Padding = new Padding(1, 2, 3, 4) 148Padding = new Padding(1, 2, 3, 4) 169Padding = new Padding(1, 2, 3, 4) 191Padding = new Padding(1, 2, 3, 4) 212Padding = new Padding(1, 2, 3, 4) 234Padding = new Padding(1, 2, 3, 4) 252Padding = new Padding(left, top, right, bottom) 304Padding = new Padding(1, 2, 3, 4) 316Padding = new Padding(1, 2, 3, 4) 329Padding = new Padding(1, 2, 3, 4) 345Padding = new Padding(1, 2, 3, 4) 362Padding = new Padding(1, 2, 3, 4) 373Padding = new Padding(1, 2, 3, 4) 385Padding = new Padding(1, 2, 3, 4) 406Padding = new Padding(1, 2, 3, 4) 427Padding = new Padding(1, 2, 3, 4) 448Padding = new Padding(1, 2, 3, 4) 469Padding = new Padding(1, 2, 3, 4)
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 (5)
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); 938Padding = new Padding(1, 2, 3, 4)
System\Windows\Forms\LabelTests.cs (2)
50Assert.Equal(new Padding(3, 0, 3, 0), control.DefaultMargin); 82Assert.Equal(new Padding(3, 0, 3, 0), control.Margin);
System\Windows\Forms\Layout\FlowLayoutTests.cs (8)
47Margin = new Padding(1, 2, 3, 4), 61Margin = new Padding(1, 2, 3, 4), 108Margin = new Padding(1, 2, 3, 4), 122Margin = new Padding(1, 2, 3, 4), 169Margin = new Padding(1, 2, 3, 4), 183Margin = new Padding(1, 2, 3, 4), 230Margin = new Padding(1, 2, 3, 4), 244Margin = new Padding(1, 2, 3, 4),
System\Windows\Forms\ListBoxTests.cs (6)
56Assert.Equal(new Padding(3), control.DefaultMargin); 93Assert.Equal(new Padding(3), control.Margin); 2025Padding padding1 = new(1); 2036Padding padding2 = new(2); 4821Padding = new Padding(1, 2, 3, 4) 4870Padding = new Padding(1, 2, 3, 4)
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\MdiControlStripTests.cs (4)
58Assert.Equal(new Padding(2, 2, 0, 2), mdiControlStrip.DefaultGripMargin); 62Assert.Equal(new Padding(6, 2, 0, 2), mdiControlStrip.DefaultPadding); 86Assert.Equal(new Padding(2, 2, 0, 2), mdiControlStrip.GripMargin); 118Assert.Equal(new Padding(6, 2, 0, 2), mdiControlStrip.Padding);
System\Windows\Forms\MenuStripTests.cs (5)
56Assert.Equal(new Padding(2, 2, 0, 2), control.DefaultGripMargin); 60Assert.Equal(new Padding(6, 2, 0, 2), control.DefaultPadding); 84Assert.Equal(new Padding(2, 2, 0, 2), control.GripMargin); 116Assert.Equal(new Padding(6, 2, 0, 2), control.Padding); 234Assert.Equal(new Padding(3, 2, 0, 2), control.DefaultPadding);
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 (18)
27yield return new object[] { "1,2,3,4", new Padding(1, 2, 3, 4) }; 28yield return new object[] { " 1 , 1, 1, 1 ", new Padding(1) }; 79Assert.Equal("1, 2, 3, 4", converter.ConvertTo(new Padding(1, 2, 3, 4), typeof(string))); 80Assert.Equal("1, 2, 3, 4", converter.ConvertTo(null, null, new Padding(1, 2, 3, 4), typeof(string))); 81Assert.Equal("1, 2, 3, 4", converter.ConvertTo(null, CultureInfo.InvariantCulture, new Padding(1, 2, 3, 4), typeof(string))); 88InstanceDescriptor descriptor = Assert.IsType<InstanceDescriptor>(converter.ConvertTo(new Padding(1, 2, 3, 4), typeof(InstanceDescriptor))); 97InstanceDescriptor descriptor = Assert.IsType<InstanceDescriptor>(converter.ConvertTo(new Padding(1, 1, 1, 1), typeof(InstanceDescriptor))); 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) }; 129yield return new object[] { new Padding(1, 2, 3, 4), -1, new Padding(1, 2, 3, 4) }; 130yield return new object[] { new Padding(1, 2, 3, 4), 1, new Padding(1) }; 161Padding expected = new(1, 2, 3, 4); 357.Returns(new ClassWithPadding { Padding = new(1) }); 386Padding expected = new(2, 2, 3, 4);
System\Windows\Forms\PaddingTests.cs (49)
30Padding padding = new(all); 52Padding padding = new(left, top, right, bottom); 81Padding padding = new(1, 2, 3, 4) 95Padding padding = new(1, 2, 3, 4); 115Padding padding = new(1); 136Padding padding = new(2) 151Padding padding = new(1, 2, 3, 4) 165Padding padding = new(1, 2, 3, 4); 186Padding padding = new(5) 201Padding padding = new(1, 2, 3, 4) 215Padding padding = new(1, 2, 3, 4); 236Padding padding = new(5) 251Padding padding = new(1, 2, 3, 4) 265Padding padding = new(1, 2, 3, 4); 286Padding padding = new(5) 301Padding padding = new(1, 2, 3, 4) 315Padding padding = new(1, 2, 3, 4); 336Padding padding = new(5) 349yield return new object[] { new Padding(1, 2, 3, 4), new Padding(2, 3, 4, 5), new Padding(3, 5, 7, 9) }; 362yield return new object[] { new Padding(2, 3, 4, 5), new Padding(1, 2, 3, 4), new Padding(1, 1, 1, 1) }; 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 }; 381yield return new object[] { new Padding(1, 2, 3, 4), new Padding(1, 2, 3, 4), true }; 382yield return new object[] { new Padding(1, 2, 3, 4), new Padding(1, 1, 3, 4), false }; 383yield return new object[] { new Padding(1, 2, 3, 4), new Padding(1, 2, 2, 4), false }; 384yield return new object[] { new Padding(1, 2, 3, 4), new Padding(1, 2, 3, 3), false }; 385yield return new object[] { new Padding(1, 2, 3, 4), new Padding(1), false }; 387yield return new object[] { new Padding(1, 2, 3, 4), new(), false }; 388yield return new object[] { new Padding(1, 2, 3, 4), null, false }; 408Padding padding = new(1, 2, 3, 4); 415Padding padding = new(1); 422Padding padding = new(1);
System\Windows\Forms\PanelTests.cs (3)
54Assert.Equal(new Padding(3), control.DefaultMargin); 89Assert.Equal(new Padding(3), control.Margin); 625Padding = new Padding(1, 2, 3, 4)
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\PropertyStoreTests.cs (2)
195Padding one = new(1, 2, 3, 4); 196Padding two = new(5, 6, 7, 8);
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 (15)
53Assert.Equal(new Padding(3), control.DefaultMargin); 88Assert.Equal(new Padding(3), control.Margin); 712Padding = new Padding(1, 2, 3, 4), 828Padding padding1 = new(1); 839Padding padding2 = new(2); 2092Padding = new Padding(1, 2, 3, 4) 2099Assert.Equal(new Padding(1, 2, 3, 4), control.Padding); 2107Padding = new Padding(1, 2, 3, 4) 2118Assert.Equal(new Padding(1, 2, 3, 4), control.Padding); 2155Padding = new Padding(1, 2, 3, 4) 2162Assert.Equal(new Padding(1, 2, 3, 4), control.Padding); 2170Padding = new Padding(1, 2, 3, 4) 2181Assert.Equal(new Padding(1, 2, 3, 4), control.Padding); 2190Padding = new Padding(1, 2, 3, 4) 2202Assert.Equal(new Padding(10, 40, 30, 80), control.Padding);
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 (28)
56Assert.Equal(new Padding(2, 2, 2, 2), control.DefaultGripMargin); 60Assert.Equal(new Padding(1, 0, 14, 0), control.DefaultPadding); 84Assert.Equal(new Padding(2, 2, 2, 2), control.GripMargin); 115Assert.Equal(new Padding(1, 0, 14, 0), control.Padding); 203yield return new object[] { ToolStripLayoutStyle.Flow, RightToLeft.Yes, new Padding(14, 0, 1, 0) }; 204yield return new object[] { ToolStripLayoutStyle.Flow, RightToLeft.No, new Padding(1, 0, 14, 0) }; 205yield return new object[] { ToolStripLayoutStyle.Flow, RightToLeft.Inherit, new Padding(1, 0, 14, 0) }; 207yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, RightToLeft.Yes, new Padding(14, 0, 1, 0) }; 208yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, RightToLeft.No, new Padding(1, 0, 14, 0) }; 209yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, RightToLeft.Inherit, new Padding(1, 0, 14, 0) }; 211yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, RightToLeft.Yes, new Padding(14, 0, 1, 0) }; 212yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, RightToLeft.No, new Padding(1, 0, 14, 0) }; 213yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, RightToLeft.Inherit, new Padding(1, 0, 14, 0) }; 215yield return new object[] { ToolStripLayoutStyle.Table, RightToLeft.Yes, new Padding(14, 0, 1, 0) }; 216yield return new object[] { ToolStripLayoutStyle.Table, RightToLeft.No, new Padding(1, 0, 14, 0) }; 217yield return new object[] { ToolStripLayoutStyle.Table, RightToLeft.Inherit, new Padding(1, 0, 14, 0) }; 219yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, RightToLeft.Yes, new Padding(1, 3, 1, 22) }; 220yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, RightToLeft.No, new Padding(1, 3, 1, 22) }; 221yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, RightToLeft.Inherit, new Padding(1, 3, 1, 22) }; 397yield return new object[] { new Padding(1, 0, 14, 0), new Padding(1, 0, 14, 0), 0, 0 }; 398yield return new object[] { new Padding(1, 2, 3, 4), new Padding(1, 2, 3, 4), 1, 1 }; 399yield return new object[] { new Padding(1), new Padding(1), 1, 1 }; 400yield return new object[] { new Padding(-1, -2, -3, -4), Padding.Empty, 1, 2 }; 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\ToolStripButtonTests.cs (12)
43Assert.Equal(new Padding(0, 1, 0, 2), item.DefaultMargin); 68Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 124Assert.Equal(new Padding(0, 1, 0, 2), item.DefaultMargin); 149Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 211Assert.Equal(new Padding(0, 1, 0, 2), item.DefaultMargin); 236Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 301Assert.Equal(new Padding(0, 1, 0, 2), item.DefaultMargin); 326Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 389Assert.Equal(new Padding(0, 1, 0, 2), item.DefaultMargin); 414Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 487Assert.Equal(new Padding(0, 1, 0, 2), item.DefaultMargin); 512Assert.Equal(new Padding(0, 1, 0, 2), item.Margin);
System\Windows\Forms\ToolStripContentPanelTests.cs (2)
56Assert.Equal(new Padding(3), control.DefaultMargin); 91Assert.Equal(new Padding(3), control.Margin);
System\Windows\Forms\ToolStripControlHostTests.cs (24)
73Assert.Equal(new Padding(0, 1, 0, 2), item.DefaultMargin); 97Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 1401Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 1412Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 1422Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 1432Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 1444Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 1472Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 1485Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 1497Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 1509Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 1523Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 1540Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 2742Padding = new Padding(1, 2, 3, 4) 3115Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 3126Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 3137Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 3148Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 3159Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 3189Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 3201Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 3213Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 3225Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 3237Assert.Equal(new Padding(0, 1, 0, 2), item.Margin);
System\Windows\Forms\ToolStripDropDownItemTests.cs (8)
39Assert.Equal(new Padding(0, 1, 0, 2), item.DefaultMargin); 68Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 128Assert.Equal(new Padding(0, 1, 0, 2), item.DefaultMargin); 157Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 227Assert.Equal(new Padding(0, 1, 0, 2), item.DefaultMargin); 256Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 327Assert.Equal(new Padding(0, 1, 0, 2), item.DefaultMargin); 364Assert.Equal(new Padding(0, 1, 0, 2), item.Margin);
System\Windows\Forms\ToolStripDropDownTests.cs (4)
60Assert.Equal(new Padding(2, 2, 2, 2), control.DefaultGripMargin); 64Assert.Equal(new Padding(1, 2, 1, 2), control.DefaultPadding); 89Assert.Equal(new Padding(2, 2, 2, 2), control.GripMargin); 124Assert.Equal(new Padding(1, 2, 1, 2), control.Padding);
System\Windows\Forms\ToolStripItemTests.cs (68)
42Assert.Equal(new Padding(0, 1, 0, 2), item.DefaultMargin); 67Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 127Assert.Equal(new Padding(0, 1, 0, 2), item.DefaultMargin); 152Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 222Assert.Equal(new Padding(0, 1, 0, 2), item.DefaultMargin); 247Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 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) }; 2063Assert.Equal(new Padding(0, 1, 0, 2), item.DefaultMargin); 2074Assert.Equal(new Padding(0, 1, 0, 2), item.DefaultMargin); 2085Assert.Equal(new Padding(0, 2, 0, 0), item.DefaultMargin); 2096Assert.Equal(new Padding(0, 1, 0, 2), item.DefaultMargin); 5889Assert.Equal(new Padding(1, 2, 3, 4), item.Margin); 5894protected internal override Padding DefaultMargin => new(1, 2, 3, 4); 6101item.Margin = new Padding(1, 2, 3, 4); 6102Assert.Equal(new Padding(1, 2, 3, 4), item.Margin); 6106Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 6117item.Margin = new Padding(1, 2, 3, 4); 6118Assert.Equal(new Padding(1, 2, 3, 4), item.Margin); 6122Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 6451Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 6459Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 6467Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 6475Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 6484Assert.Equal(new Padding(0, 2, 0, 0), item.Margin); 6495Margin = new Padding(1, 2, 3, 4), 6501Assert.Equal(new Padding(1, 2, 3, 4), item.Margin); 6509Assert.Equal(new Padding(1, 2, 3, 4), item.Margin); 6517Assert.Equal(new Padding(1, 2, 3, 4), item.Margin); 6525Assert.Equal(new Padding(1, 2, 3, 4), item.Margin); 6534Assert.Equal(new Padding(1, 2, 3, 4), item.Margin); 6710Assert.Equal(new Padding(2, 3, 4, 5), item.Padding); 6715protected override Padding DefaultPadding => new(2, 3, 4, 5); 6736yield return new object[] { new Padding(1, 2, 3, 4), new Padding(1, 2, 3, 4), 1, 1 }; 6737yield return new object[] { new Padding(1), new Padding(1), 1, 1 }; 6738yield return new object[] { new Padding(-1, -2, -3, -4), Padding.Empty, 1, 2 }; 6916item.Padding = new Padding(1, 2, 3, 4); 6917Assert.Equal(new Padding(1, 2, 3, 4), item.Padding); 6932item.Padding = new Padding(1, 2, 3, 4); 6933Assert.Equal(new Padding(1, 2, 3, 4), item.Padding); 6978Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 6987Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 6995Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 7003Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 7012Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 7028Margin = new Padding(1, 2, 3, 4), 7035Assert.Equal(new Padding(1, 2, 3, 4), item.Margin); 7044Assert.Equal(new Padding(1, 2, 3, 4), item.Margin); 7052Assert.Equal(new Padding(1, 2, 3, 4), item.Margin); 7060Assert.Equal(new Padding(1, 2, 3, 4), item.Margin); 7069Assert.Equal(new Padding(1, 2, 3, 4), item.Margin); 12152Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 12158Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 12167Margin = new Padding(1, 2, 3, 4) 12182Assert.Equal(new Padding(1, 2, 3, 4), item.Margin); 12188Assert.Equal(new Padding(1, 2, 3, 4), item.Margin); 12256Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 12264Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 14203Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 14206item.Margin = new Padding(1, 2, 3, 4); 14208Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 14212Assert.Equal(new Padding(0, 1, 0, 2), item.Margin); 14225item.Padding = new Padding(1, 2, 3, 4);
System\Windows\Forms\ToolStripMenuItemTests.cs (5)
40Assert.Equal(new Padding(0, 0, 0, 0), item.DefaultMargin); 41Assert.Equal(new Padding(4, 0, 4, 0), item.DefaultPadding); 81Assert.Equal(new Padding(4, 0, 4, 0), item.Padding); 292Margin = new Padding(1), 297Padding = new Padding(2),
System\Windows\Forms\ToolStripPanelTests.cs (1)
103Assert.Equal(new Padding(3, 0, 0, 0), control.RowMargin);
System\Windows\Forms\ToolStripTests.cs (13)
60Assert.Equal(new Padding(2, 2, 2, 2), control.DefaultGripMargin); 64Assert.Equal(new Padding(0, 0, 1, 0), control.DefaultPadding); 99Assert.Equal(new Padding(2, 2, 2, 2), control.GripMargin); 132Assert.Equal(new Padding(0, 0, 1, 0), control.Padding); 217Assert.Equal(new Padding(2, 2, 2, 2), control.DefaultGripMargin); 221Assert.Equal(new Padding(0, 0, 1, 0), control.DefaultPadding); 253Assert.Equal(new Padding(2, 2, 2, 2), control.GripMargin); 287Assert.Equal(new Padding(0, 0, 1, 0), control.Padding); 2249Assert.Equal(new Padding(2, 2, 2, 2), control.DefaultGripMargin); 2256Assert.Equal(new Padding(2, 2, 2, 2), control.GripMargin); 2257Assert.Equal(new Padding(2, 2, 2, 2), control.DefaultGripMargin); 7413toolStrip.GripMargin = new Padding(10, 10, 10, 10); 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 (3)
2252Padding padding1 = new(1); 2263Padding padding2 = new(2); 5039Padding padding = new(1, 2, 3, 4);
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 (8)
CommonTestHelperEx.cs (8)
80new(1, 2, 3, 4), 81new(1), 82new(-1, -2, -3, -4) 92{ new Padding(1, 2, 3, 4), new Padding(1, 2, 3, 4) }, 93{ new Padding(1), new Padding(1) }, 94{ new Padding(-1, -2, -3, -4), Padding.Empty }
System.Windows.Forms.UI.IntegrationTests (1)
Dpi\SplitContainerTests.cs (1)
50Margin = new Padding(0),
WindowsFormsIntegration (1)
System\Windows\Integration\Convert.cs (1)
302return new Padding(ToBoundedInt(thickness.Left),
WinFormsControlsTest (66)
ComboBoxes.Designer.cs (1)
240this.currentDPILabel1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
ComboBoxesWithScrollBars.Designer.cs (27)
75this.comboBox1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 87this.comboBox2.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 99this.comboBox3.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 114this.changeHeightGroupBox1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 116this.changeHeightGroupBox1.Padding = new System.Windows.Forms.Padding(4, 3, 4, 3); 126this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 135this.changeDDH_UpDown1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 151this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 160this.changeCBHeight_UpDown2.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 174this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 183this.changeDDH_UpDown3.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 201this.changeMaxDropDownItemsGroupBox2.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 203this.changeMaxDropDownItemsGroupBox2.Padding = new System.Windows.Forms.Padding(4, 3, 4, 3); 212this.maxDropDownItemsUpDown1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 225this.maxDropDownItemsUpDown2.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 239this.maxDropDownItemsUpDown3.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 255this.changeIntegralHeightGroupBox3.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 257this.changeIntegralHeightGroupBox3.Padding = new System.Windows.Forms.Padding(4, 3, 4, 3); 267this.integralHeightCheckBox1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 278this.integralHeightCheckBox2.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 289this.integralHeightCheckBox3.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 302this.changeHeightsStyleGroupBox4.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 304this.changeHeightsStyleGroupBox4.Padding = new System.Windows.Forms.Padding(4, 3, 4, 3); 314this.useDifferentHeightsCheckBox1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 325this.useDifferentHeightsCheckBox2.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 336this.useDifferentHeightsCheckBox3.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); 357this.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
DateTimePicker.Designer.cs (6)
46this.dateTimePicker1.Margin = new Padding(4, 3, 4, 3); 56this.dateTimePicker2.Margin = new Padding(4, 3, 4, 3); 67this.dateTimePicker3.Margin = new Padding(4, 3, 4, 3); 77this.dateTimePicker4.Margin = new Padding(4, 3, 4, 3); 87this.dateTimePicker5.Margin = new Padding(4, 3, 4, 3); 103this.Margin = new Padding(4, 3, 4, 3);
DesignTimeAligned.Designer.cs (5)
45this.label1.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); 56this.label2.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); 66this.button1.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6); 77this.textBox1.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6); 102this.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
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);
MenuStripAndCheckedListBox.Designer.cs (3)
75this.menuStrip1.Padding = new System.Windows.Forms.Padding(12, 4, 0, 4); 275this.currentDpiLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 289this.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
MessageBoxes.Designer.cs (1)
43this.propertyGrid1.Margin = new System.Windows.Forms.Padding(2);
PictureBoxes.Designer.cs (3)
46this.pictureBox1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); 59this.btnloadImage.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); 87this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
PropertyGrid.Designer.cs (2)
42this.propertyGrid1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); 53this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
ScrollableControls.Designer.cs (2)
326tabPage1.Padding = new Padding(3); 345tabPage2.Padding = new Padding(3);
Splitter.Designer.cs (2)
43this.splitContainer1.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6); 64this.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
TrackBars.Designer.cs (12)
61this.trackBar1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); 73this.rbHorizontal.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); 86this.rbVertical.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); 99this.gbOrientation.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); 101this.gbOrientation.Padding = new System.Windows.Forms.Padding(3, 2, 3, 2); 111this.chbRightToLeft.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); 123this.chbRightToLeftLayout.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); 135this.tickstyleNone.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); 146this.numericMinimum.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); 165this.numericMaximum.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); 184this.numericFrequency.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); 263this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
936 references to Padding
PresentationUI (4)
MS\Internal\Documents\SignatureSummaryDialog.cs (4)
174private Padding CellPadding 229Padding columnMargin = new Padding(0); 230Padding columnPadding = new Padding(CellPadding.Left, 3, 0, 3); 803private Padding _cellPadding = new Padding(10);
System.Windows.Forms (227)
Properties\TypeForwards.cs (1)
12[assembly: TypeForwardedTo(typeof(System.Windows.Forms.Padding))]
System\Windows\Forms\Control.cs (7)
1579protected virtual Padding DefaultMargin => CommonProperties.DefaultMargin; 1585protected virtual Padding DefaultPadding => Padding.Empty; 2435public Padding Margin 3747public Padding Padding 9680Padding padding = Padding; 9681Padding margins = Margin;
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
557Padding padding,
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (1)
110public Padding Padding { get; set; }
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (1)
300Padding padding,
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonPopupAdapter.cs (1)
152Padding padding,
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxPopupAdapter.cs (1)
133Padding padding,
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
730public new Padding Padding
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
3032public new Padding Padding
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 (5)
261public Padding Padding 263get => Properties.GetValueOrDefault<Padding>(s_propPadding); 286internal Padding PaddingInternal 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\DateTimePicker\DateTimePicker.cs (1)
718public new Padding Padding
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (2)
135protected override Padding DefaultPadding => new(3); 162Padding padding = Padding;
System\Windows\Forms\Controls\Labels\Label.cs (1)
312protected override Padding DefaultMargin => new(3, 0, 3, 0);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
335public new Padding Padding
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
338public new Padding Padding
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
1205public new Padding Padding
System\Windows\Forms\Controls\ListView\ListView.cs (1)
2109public new Padding Padding
System\Windows\Forms\Controls\Menus\MenuStrip.cs (2)
59protected override Padding DefaultGripMargin => 71protected override Padding DefaultPadding
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (2)
323protected override Padding DefaultMargin => new(9); 558public new Padding Padding
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
361public new Padding Padding
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
201Padding toolStripPadding = _toolStrip.Padding; 809public new Padding Padding
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
760public new Padding Padding
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (2)
70protected override Padding DefaultPadding 127public new Padding Padding
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (17)
65private static readonly Padding s_logicalDefaultPadding = new(0, 0, 1, 0); 66private static readonly Padding s_logicalDefaultGripMargin = new(2); 67private Padding _defaultPadding = s_logicalDefaultPadding; 68private Padding _defaultGripMargin = s_logicalDefaultGripMargin; 546protected override Padding DefaultPadding 556protected override Padding DefaultMargin => Padding.Empty; 560protected virtual Padding DefaultGripMargin => 837public Padding GripMargin 2250Padding padding = Padding; 2252Padding newPadding = Padding; 2290Padding itemMargin = item.Margin; 2312Padding overflowItemMargin = overflowItem.Margin; 2324Padding gripMargin = toolStrip.GripMargin; 2350Padding itemMargin = item.Margin; 2371Padding overflowItemMargin = overflowItem.Margin; 2382Padding gripMargin = toolStrip.GripMargin;
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (3)
22private static readonly Padding s_dropDownPadding = new(2); 23private static readonly Padding s_padding = new(1, 0, 1, 0); 107protected internal override Padding DefaultMargin => IsOnDropDown
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (4)
35private static readonly Padding s_defaultPadding = new(1, 2, 1, 2); 36private Padding _scaledDefaultPadding = s_defaultPadding; 256protected override Padding DefaultPadding 411public new Padding GripMargin
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.ToolStripDropDownButtonInternalLayout.cs (1)
15private Padding _dropDownArrowPadding;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (5)
37private Padding _imagePadding; 38private Padding _textPadding; 39private Padding _checkPadding; 40private Padding _arrowPadding; 70protected override Padding DefaultPadding
System\Windows\Forms\Controls\ToolStrips\ToolStripGrip.cs (2)
17private Padding _defaultPadding; 25protected internal override Padding DefaultMargin => _defaultPadding;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (7)
47private Padding _defaultMargin; 48private Padding _defaultStatusStripMargin; 655protected internal virtual Padding DefaultMargin 672protected virtual Padding DefaultPadding => Padding.Empty; 1263public Padding Margin 1511public virtual Padding Padding
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (5)
51private static readonly Padding s_defaultPadding = new(4, 0, 4, 0); 52private static readonly Padding s_defaultDropDownPadding = new(0, 1, 0, 1); 218protected internal override Padding DefaultMargin => Padding.Empty; 220protected override Padding DefaultPadding => IsOnDropDown
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflowButton.cs (2)
43protected internal override Padding DefaultMargin => Padding.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (7)
16private Padding _rowMargin; 31internal static readonly Padding s_dragMargin = new(10); 115protected override Padding DefaultPadding 117get { return Padding.Empty; } 120protected override Padding DefaultMargin 122get { return Padding.Empty; } 125public Padding RowMargin
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (1)
106Margin = Padding.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (6)
125protected virtual Padding DefaultMargin 134Padding padding = ToolStripPanel.RowMargin; 156protected virtual Padding DefaultPadding 158get { return Padding.Empty; } 197public Padding Margin 209public virtual Padding Padding
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (8)
113Padding cellMargin = lastCellOnRow.Margin; 190Padding cellMargin = cell.Margin; 246Padding cellMargin; 369Padding nextCellMargin = nextCell.Margin; 457Padding nextCellMargin = nextCell.Margin; 495Padding lastCellMargin = lastCell.Margin; 516Padding newCellMargin = newCell.Margin; 542Padding cellMargin = cell.Margin;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (9)
115Padding cellMargin = lastCellOnRow.Margin; 192Padding cellMargin = cell.Margin; 248Padding cellMargin; 364Padding cellMargin = lastCellOnRow.Margin; 466Padding nextCellMargin = nextCell.Margin; 505Padding lastCellMargin = lastCell.Margin; 526Padding newCellMargin = newCell.Margin; 546Padding cellMargin = cell.Margin; 579Padding nextCellMargin = nextCell.Margin;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (2)
34private Padding _scaledDropDownMenuItemPaintPadding = new(DROP_DOWN_MENU_ITEM_PAINT_PADDING_SIZE + 1, 0, DROP_DOWN_MENU_ITEM_PAINT_PADDING_SIZE, 0); 287Padding deflatePadding = item.RightToLeft == RightToLeft.Yes ? new Padding(0, 1, 1, 1) : new Padding(1, 1, 0, 1);
System\Windows\Forms\Controls\ToolStrips\ToolStripProgressBar.cs (3)
14private Padding _defaultMargin; 15private Padding _defaultStatusStripMargin; 83protected internal override Padding DefaultMargin
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.cs (4)
46protected internal override Padding DefaultMargin => Padding.Empty; 48protected override Padding DefaultPadding => Padding.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (2)
56protected internal override Padding DefaultMargin => Padding.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonButton.cs (1)
51public override Padding Padding
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (3)
289Padding itemMargin = item.Margin; 429Padding itemMargin = item.Margin; 577Padding itemMargin = item.Margin;
System\Windows\Forms\Controls\ToolStrips\ToolStripStatusLabel.cs (2)
18private Padding _defaultMargin = ScaleHelper.ScaleToDpi(new Padding(0, 3, 0, 2), ScaleHelper.InitialSystemDpi); 125protected internal override Padding DefaultMargin => _defaultMargin;
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (3)
24private Padding _defaultMargin; 25private Padding _defaultDropDownMargin; 75protected internal override Padding DefaultMargin => IsOnDropDown ? _defaultDropDownMargin : _defaultMargin;
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
404public new Padding Padding
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
939public new Padding Padding
System\Windows\Forms\Controls\UpDown\DomainUpDown.cs (1)
63public new Padding Padding
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (1)
224public new Padding Padding
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
495public new Padding Padding
System\Windows\Forms\Form.cs (1)
1280public new Padding Margin
System\Windows\Forms\Layout\ArrangedElement.cs (6)
45protected virtual Padding DefaultMargin 47get { return Padding.Empty; } 50protected virtual Padding DefaultPadding 52get { return Padding.Empty; } 69public Padding Margin 81public virtual Padding Padding
System\Windows\Forms\Layout\CommonProperties.cs (9)
31internal static Padding DefaultMargin { get; } = new(3); 84internal static Padding GetMargin(IArrangedElement element) 86if (element.Properties.TryGetValue(s_marginProperty, out Padding padding)) 133internal static Padding GetPadding(IArrangedElement element, Padding defaultPadding) 135if (element.Properties.TryGetValue(s_paddingProperty, out Padding padding)) 189internal static void SetMargin(IArrangedElement element, Padding value) 249/// See <see cref="GetPadding(IArrangedElement, Padding)"/> for more details. NOTE: It is the callers 253internal static void SetPadding(IArrangedElement element, Padding value)
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
503public new Padding Padding
System\Windows\Forms\Layout\DefaultLayout.cs (3)
665Padding containerPadding; 674containerPadding = CommonProperties.GetPadding(container, Padding.Empty); 1123Padding margin = CommonProperties.GetMargin(element);
System\Windows\Forms\Layout\FlowLayout.cs (1)
316Padding margin = CommonProperties.GetMargin(container.Children[0]);
System\Windows\Forms\Layout\FlowLayout.ElementProxy.cs (1)
67public virtual Padding Margin => CommonProperties.GetMargin(Element!);
System\Windows\Forms\Layout\FlowLayout.VerticalElementProxy.cs (1)
49public override Padding Margin => LayoutUtils.FlipPadding(base.Margin);
System\Windows\Forms\Layout\LayoutUtils.cs (6)
140public static Padding ClampNegativePaddingToZero(Padding padding) 372public static Rectangle InflateRect(Rectangle rect, Padding padding) 381public static Rectangle DeflateRect(Rectangle rect, Padding padding) 411public static Padding FlipPadding(Padding padding)
System\Windows\Forms\Layout\TableLayout.cs (3)
734Padding margin = CommonProperties.GetMargin(element); 853Padding margin = CommonProperties.GetMargin(element); 1255Padding elementMargin = CommonProperties.GetMargin(element);
System\Windows\Forms\MDI\MDIControlStrip.cs (2)
55item.Padding = Padding.Empty; 69_system.Padding = Padding.Empty;
System\Windows\Forms\Panels\SplitterPanel.cs (2)
151/// A new instance of the <see cref="Padding" /> struct with the padding set to 0 for all edges. 153protected override Padding DefaultMargin => new(0, 0, 0, 0);
System\Windows\Forms\Printing\PrintPreviewDialog.cs (2)
234public new Padding Margin 267public new Padding Padding
System\Windows\Forms\PropertyStore.cs (2)
193if (typeof(T) == typeof(Padding)) 195AddOrUpdate(key, Unsafe.As<T, Padding>(ref value));
System\Windows\Forms\Scrolling\ScrollableControl.DockPaddingEdgesConverter.cs (4)
109Padding padding = _owner.Padding; 132Padding padding = _owner.Padding; 155Padding padding = _owner.Padding; 178Padding padding = _owner.Padding;
System\Windows\Forms\Scrolling\ScrollBar.cs (2)
135protected override Padding DefaultMargin => Padding.Empty;
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (1)
625public unsafe Padding GetMargins(IDeviceContext dc, MarginProperty prop)
System.Windows.Forms.Design (14)
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\ControlDesigner.cs (1)
345internal IList<SnapLine> EdgeAndMarginSnapLines(Padding margin)
System\Windows\Forms\Design\DesignerToolStripControlHost.cs (1)
24Margin = Padding.Empty;
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (2)
150var margin = control.Margin; 202var margin = currentControl.Margin;
System\Windows\Forms\Design\FormDocumentDesigner.cs (1)
198if (Control.Padding == Padding.Empty && snapLines is not null)
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (5)
20private static Padding s_defaultPadding = new(0); 98private Padding Padding 100get => (Padding)ShadowProperties[nameof(Padding)]!; 587Padding padding = (Padding)ShadowProperties[nameof(Padding)]!;
System.Windows.Forms.Design.Tests (5)
System\ComponentModel\Design\ByteViewerTests.cs (4)
62Assert.Equal(Padding.Empty, control.DefaultPadding); 100Assert.Equal(Padding.Empty, control.Padding); 1020public new Padding DefaultMargin => base.DefaultMargin; 1026public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\Design\DesignerToolStripControlHostTests.cs (1)
17host.Margin.Should().Be(Padding.Empty);
System.Windows.Forms.Primitives (42)
System\Windows\Forms\Internals\ScaleHelper.cs (4)
280/// Scales a logical (100%) <see cref="Padding"/> value to the specified DPI. 282/// <param name="logicalPadding"><see cref="Padding"/> in logical units (pixels at 100%).</param> 283internal static Padding ScaleToDpi(Padding logicalPadding, int dpi) => dpi == OneHundredPercentLogicalDpi
System\Windows\Forms\Padding.cs (23)
12public struct Padding : IEquatable<Padding> 21public static readonly Padding Empty = new(0); 130public static Padding Add(Padding p1, Padding p2) => p1 + p2; 132public static Padding Subtract(Padding p1, Padding p2) => p1 - p2; 135public override readonly bool Equals(object? other) => other is Padding otherPadding && Equals(otherPadding); 138public readonly bool Equals(Padding other) => 145/// Performs vector addition of two <see cref="Padding"/> objects. 147public static Padding operator +(Padding p1, Padding p2) => 153public static Padding operator -(Padding p1, Padding p2) => 157/// Tests whether two <see cref="Padding"/> objects are identical. 159public static bool operator ==(Padding p1, Padding p2) => 163/// Tests whether two <see cref="Padding"/> objects are different. 165public static bool operator !=(Padding p1, Padding p2) => !(p1 == p2);
System\Windows\Forms\PaddingConverter.cs (15)
45if (value is Padding padding) 58typeof(Padding).GetConstructor([typeof(int)]), 61typeof(Padding).GetConstructor([typeof(int), typeof(int), typeof(int), typeof(int)]), 84if (original is Padding originalPadding) 86int all = (int)propertyValues[nameof(Padding.All)]!; 94(int)propertyValues[nameof(Padding.Left)]!, 95(int)propertyValues[nameof(Padding.Top)]!, 96(int)propertyValues[nameof(Padding.Right)]!, 97(int)propertyValues[nameof(Padding.Bottom)]!); 114PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(typeof(Padding), attributes); 115return properties.Sort([nameof(Padding.All), nameof(Padding.Left), nameof(Padding.Top), nameof(Padding.Right), nameof(Padding.Bottom)]);
System.Windows.Forms.Tests (635)
CheckedListBoxTests.cs (9)
162public void CheckedListBox_Padding_Set_GetReturnsExpected(Padding value, Padding expected) 179yield return new object[] { default(Padding), default(Padding), 0, 0 }; 182yield return new object[] { new Padding(-1, -2, -3, -4), Padding.Empty, 1, 2 }; 187public void CheckedListBox_Padding_SetWithHandle_GetReturnsExpected(Padding value, Padding expected, int expectedInvalidatedCallCount1, int expectedInvalidatedCallCount2) 228Padding padding1 = new(1); 239Padding padding2 = new(2);
NumericUpDownTests.cs (1)
369Padding padding = new(1, 2, 3, 4);
SerializableAttributeTests.cs (1)
26{ typeof(Padding).FullName },
SerializableTypesTests.cs (3)
248Padding padding = new(1, 2, 3, 4); 258Padding result = BinarySerialization.EnsureDeserialize<Padding>(blob);
System\Windows\Forms\AxHostTests.cs (6)
64Assert.Equal(Padding.Empty, control.DefaultPadding); 93Assert.Equal(Padding.Empty, control.Padding); 158Assert.Equal(Padding.Empty, control.DefaultPadding); 187Assert.Equal(Padding.Empty, control.Padding); 3178public new Padding DefaultMargin => base.DefaultMargin; 3184public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\ButtonBaseTests.cs (4)
55Assert.Equal(Padding.Empty, control.DefaultPadding); 90Assert.Equal(Padding.Empty, control.Padding); 9281public new Padding DefaultMargin => base.DefaultMargin; 9287public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\ButtonTests.cs (4)
57Assert.Equal(Padding.Empty, control.DefaultPadding); 93Assert.Equal(Padding.Empty, control.Padding); 3689public new Padding DefaultMargin => base.DefaultMargin; 3695public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\CheckBoxTests.cs (4)
59Assert.Equal(Padding.Empty, control.DefaultPadding); 94Assert.Equal(Padding.Empty, control.Padding); 644public new Padding DefaultMargin => base.DefaultMargin; 650public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\ComboBoxTests.cs (10)
62Assert.Equal(Padding.Empty, control.DefaultPadding); 104Assert.Equal(Padding.Empty, control.Padding); 1178public void ComboBox_Padding_Set_GetReturnsExpected(Padding value, Padding expected) 1195public void ComboBox_Padding_SetWithHandle_GetReturnsExpected(Padding value, Padding expected) 1236Padding padding1 = new(1); 1247Padding padding2 = new(2); 2833public new Padding DefaultMargin => base.DefaultMargin; 2839public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\ContainerControlTests.cs (4)
63Assert.Equal(Padding.Empty, control.DefaultPadding); 98Assert.Equal(Padding.Empty, control.Padding); 1423public new Padding DefaultMargin => base.DefaultMargin; 1429public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\ControlTests.cs (12)
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); 1156public new Padding DefaultMargin => base.DefaultMargin; 1162public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\ControlTests.Properties.cs (40)
7675yield return new object[] { new ZeroDefaultMarginControl(), Padding.Empty }; 7680public void Control_Margin_GetWithCustomDefaultMargin_ReturnsExpected(Control control, Padding expected) 7687protected override Padding DefaultMargin => new(1, 2, 3, 4); 7692protected override Padding DefaultMargin => Padding.Empty; 7697yield return new object[] { default(Padding), default(Padding) }; 7700yield return new object[] { new Padding(-1, -2, -3, -4), Padding.Empty }; 7705public void Control_Margin_Set_GetReturnsExpected(Padding value, Padding expected) 7725public void Control_Margin_SetWithParent_GetReturnsExpected(Padding value, Padding expected) 7755public void Control_Margin_SetWithHandle_GetReturnsExpected(Padding value, Padding expected) 7794public void Control_Margin_SetWithParentWithHandle_GetReturnsExpected(Padding value, Padding expected) 9385yield return new object[] { new Control(), Padding.Empty }; 9391public void Control_Padding_GetWithCustomDefaultPadding_ReturnsExpected(Control control, Padding expected) 9398protected override Padding DefaultPadding => new(1, 2, 3, 4); 9403yield return new object[] { default(Padding), default(Padding), 0, 0 }; 9406yield return new object[] { new Padding(-1, -2, -3, -4), Padding.Empty, 1, 2 }; 9411public void Control_Padding_Set_GetReturnsExpected(Padding value, Padding expected, int expectedLayoutCallCount1, int expectedLayoutCallCount2) 9437public void Control_Padding_SetWithParent_GetReturnsExpected(Padding value, Padding expected, int expectedLayoutCallCount1, int expectedLayoutCallCount2) 9483yield return new object[] { false, default(Padding), default(Padding), 0, 0, 0, 0 }; 9486yield return new object[] { false, new Padding(-1, -2, -3, -4), Padding.Empty, 1, 0, 2, 0 }; 9487yield return new object[] { true, default(Padding), default(Padding), 0, 0, 0, 0 }; 9490yield return new object[] { true, new Padding(-1, -2, -3, -4), Padding.Empty, 1, 1, 2, 2 }; 9495public void Control_Padding_SetWithHandle_GetReturnsExpected(bool resizeRedraw, Padding value, Padding expected, int expectedLayoutCallCount1, int expectedInvalidatedCallCount1, int expectedLayoutCallCount2, int expectedInvalidatedCallCount2) 9535public void Control_Padding_SetWithParentWithHandle_GetReturnsExpected(bool resizeRedraw, Padding value, Padding expected, int expectedLayoutCallCount1, int expectedInvalidatedCallCount1, int expectedLayoutCallCount2, int expectedInvalidatedCallCount2) 9619Padding padding1 = new(1); 9630Padding padding2 = new(2); 9654Assert.Equal(Padding.Empty, control.Padding); 9670Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\DataGridViewCellStyleTests.cs (10)
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 }; 495public void DataGridViewCellStyle_Padding_Set_GetReturnsExpected(Padding value, Padding expected) 765Assert.Equal(Padding.Empty, style.Padding); 832Assert.Equal(Padding.Empty, style.Padding);
System\Windows\Forms\DataGridViewTests.cs (2)
3516Padding padding1 = new(10); 3517Padding padding2 = new(20);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (4)
61Assert.Equal(Padding.Empty, control.DefaultPadding); 95Assert.Equal(Padding.Empty, control.Padding); 2116public new Padding DefaultMargin => base.DefaultMargin; 2122public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\DateTimePickerTests.cs (4)
65Assert.Equal(Padding.Empty, control.DefaultPadding); 95Assert.Equal(Padding.Empty, control.Padding); 1018public new Padding DefaultMargin => base.DefaultMargin; 1024public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\Design\ComponentEditorFormTests.cs (4)
73Assert.Equal(Padding.Empty, control.DefaultPadding); 128Assert.Equal(Padding.Empty, control.Padding); 392public new Padding DefaultMargin => base.DefaultMargin; 398public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\Design\ComponentEditorPageTests.cs (4)
59Assert.Equal(Padding.Empty, control.DefaultPadding); 99Assert.Equal(Padding.Empty, control.Padding); 895public new Padding DefaultMargin => base.DefaultMargin; 901public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\DomainUpDownTests.cs (10)
83_sub.DefaultPadding.Should().Be(Padding.Empty); 121_sub.Padding.Should().Be(Padding.Empty); 188public void DomainUpDown_Padding_Set_GetReturnsExpected(Padding value, Padding expected) 202public void DomainUpDown_Padding_SetWithHandle_GetReturnsExpected(Padding value, Padding expected) 240Padding padding1 = new(1); 251Padding padding2 = new(2); 1482public new Padding DefaultMargin => base.DefaultMargin; 1488public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\FlowLayoutPanelTests.cs (4)
56Assert.Equal(Padding.Empty, control.DefaultPadding); 92Assert.Equal(Padding.Empty, control.Padding); 442public new Padding DefaultMargin => base.DefaultMargin; 448public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\FormTests.cs (4)
72Assert.Equal(Padding.Empty, control.DefaultPadding); 130Assert.Equal(Padding.Empty, control.Padding); 2702public new Padding DefaultMargin => base.DefaultMargin; 2708public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\GroupBoxTests.cs (2)
2307public new Padding DefaultMargin => base.DefaultMargin; 2313public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\HScrollBarTests.cs (6)
54Assert.Equal(Padding.Empty, control.DefaultMargin); 57Assert.Equal(Padding.Empty, control.DefaultPadding); 85Assert.Equal(Padding.Empty, control.Margin); 90Assert.Equal(Padding.Empty, control.Padding); 256public new Padding DefaultMargin => base.DefaultMargin; 262public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\LabelTests.cs (4)
53Assert.Equal(Padding.Empty, control.DefaultPadding); 85Assert.Equal(Padding.Empty, control.Padding); 891public new Padding DefaultMargin => base.DefaultMargin; 897public new Padding DefaultPadding => base.DefaultPadding;
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 (10)
59Assert.Equal(Padding.Empty, control.DefaultPadding); 97Assert.Equal(Padding.Empty, control.Padding); 1967public void ListBox_Padding_Set_GetReturnsExpected(Padding value, Padding expected) 1984public void ListBox_Padding_SetWithHandle_GetReturnsExpected(Padding value, Padding expected) 2025Padding padding1 = new(1); 2036Padding padding2 = new(2); 6414public new Padding DefaultMargin => base.DefaultMargin; 6420public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\ListControlTests.cs (4)
56Assert.Equal(Padding.Empty, control.DefaultPadding); 86Assert.Equal(Padding.Empty, control.Padding); 2922public new Padding DefaultMargin => base.DefaultMargin; 2928public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\ListViewTests.cs (4)
68Assert.Equal(Padding.Empty, control.DefaultPadding); 114Assert.Equal(Padding.Empty, control.Padding); 6109public new Padding DefaultMargin => base.DefaultMargin; 6115public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\MdiClientTests.cs (1)
66Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\MdiControlStripTests.cs (5)
59Assert.Equal(Padding.Empty, mdiControlStrip.DefaultMargin); 109Assert.Equal(Padding.Empty, mdiControlStrip.Margin); 364public new Padding DefaultGripMargin => base.DefaultGripMargin; 368public new Padding DefaultMargin => base.DefaultMargin; 374public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\MenuStripTests.cs (5)
57Assert.Equal(Padding.Empty, control.DefaultMargin); 107Assert.Equal(Padding.Empty, control.Margin); 860public new Padding DefaultGripMargin => base.DefaultGripMargin; 864public new Padding DefaultMargin => base.DefaultMargin; 870public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\MonthCalendarTests.cs (10)
66Assert.Equal(Padding.Empty, control.DefaultPadding); 102Assert.Equal(Padding.Empty, control.Padding); 1635public void MonthCalendar_Padding_Set_GetReturnsExpected(Padding value, Padding expected) 1652public void MonthCalendar_Padding_SetWithHandle_GetReturnsExpected(Padding value, Padding expected) 1693Padding padding1 = new(1); 1704Padding padding2 = new(2); 4738public new Padding DefaultMargin => base.DefaultMargin; 4744public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\PaddingConverterTests.cs (106)
17[InlineData(typeof(Padding), false)] 89Assert.Equal(typeof(Padding).GetConstructor([typeof(int), typeof(int), typeof(int), typeof(int)]), descriptor.MemberInfo); 98Assert.Equal(typeof(Padding).GetConstructor([typeof(int)]), descriptor.MemberInfo); 117[InlineData(typeof(Padding))] 122Assert.Throws<NotSupportedException>(() => converter.ConvertTo(default(Padding), destinationType)); 135public void PaddingConverter_CreateInstance_ValidPropertyValuesAll_ReturnsExpected(Padding instance, int all, Padding result) 145Padding padding = Assert.IsType<Padding>(converter.CreateInstance( 148{ nameof(Padding.All), all }, 149{ nameof(Padding.Left), 1 }, 150{ nameof(Padding.Top), 2 }, 151{ nameof(Padding.Right), 3 }, 152{ nameof(Padding.Bottom), 4 } 161Padding expected = new(1, 2, 3, 4); 162Padding padding = Assert.IsType<Padding>(converter.CreateInstance( 165{ nameof(Padding.All), expected.All }, 166{ nameof(Padding.Left), expected.Left }, 167{ nameof(Padding.Top), expected.Top }, 168{ nameof(Padding.Right), expected.Right }, 169{ nameof(Padding.Bottom), expected.Bottom } 187{ nameof(Padding.All), new object() }, 188{ nameof(Padding.Left), 2 }, 189{ nameof(Padding.Top), 2 }, 190{ nameof(Padding.Right), 3 }, 191{ nameof(Padding.Bottom), 4 } 198{ nameof(Padding.All), null }, 199{ nameof(Padding.Left), 2 }, 200{ nameof(Padding.Top), 2 }, 201{ nameof(Padding.Right), 3 }, 202{ nameof(Padding.Bottom), 4 } 209{ nameof(Padding.Left), 2 }, 210{ nameof(Padding.Top), 2 }, 211{ nameof(Padding.Right), 3 }, 212{ nameof(Padding.Bottom), 4 } 220{ nameof(Padding.All), 1 }, 221{ nameof(Padding.Left), new object() }, 222{ nameof(Padding.Top), 2 }, 223{ nameof(Padding.Right), 3 }, 224{ nameof(Padding.Bottom), 4 } 231{ nameof(Padding.All), 1 }, 232{ nameof(Padding.Left), null }, 233{ nameof(Padding.Top), 2 }, 234{ nameof(Padding.Right), 3 }, 235{ nameof(Padding.Bottom), 4 } 242{ nameof(Padding.All), 1 }, 243{ nameof(Padding.Top), 2 }, 244{ nameof(Padding.Right), 3 }, 245{ nameof(Padding.Bottom), 4 } 253{ nameof(Padding.All), 1 }, 254{ nameof(Padding.Left), 2 }, 255{ nameof(Padding.Top), new object() }, 256{ nameof(Padding.Right), 3 }, 257{ nameof(Padding.Bottom), 4 } 264{ nameof(Padding.All), 1 }, 265{ nameof(Padding.Left), 2 }, 266{ nameof(Padding.Top), null }, 267{ nameof(Padding.Right), 3 }, 268{ nameof(Padding.Bottom), 4 } 275{ nameof(Padding.All), 1 }, 276{ nameof(Padding.Left), 2 }, 277{ nameof(Padding.Right), 3 }, 278{ nameof(Padding.Bottom), 4 } 286{ nameof(Padding.All), 1 }, 287{ nameof(Padding.Left), 2 }, 288{ nameof(Padding.Top), 2 }, 289{ nameof(Padding.Right), new object() }, 290{ nameof(Padding.Bottom), 4 } 297{ nameof(Padding.All), 1 }, 298{ nameof(Padding.Left), 2 }, 299{ nameof(Padding.Top), 2 }, 300{ nameof(Padding.Right), null }, 301{ nameof(Padding.Bottom), 4 } 308{ nameof(Padding.All), 1 }, 309{ nameof(Padding.Left), 2 }, 310{ nameof(Padding.Top), 2 }, 311{ nameof(Padding.Bottom), 4 } 319{ nameof(Padding.All), 1 }, 320{ nameof(Padding.Left), 2 }, 321{ nameof(Padding.Top), 2 }, 322{ nameof(Padding.Right), 3 }, 323{ nameof(Padding.Bottom), new object() } 330{ nameof(Padding.All), 1 }, 331{ nameof(Padding.Left), 2 }, 332{ nameof(Padding.Top), 2 }, 333{ nameof(Padding.Right), 3 }, 334{ nameof(Padding.Bottom), null } 341{ nameof(Padding.All), 1 }, 342{ nameof(Padding.Left), 2 }, 343{ nameof(Padding.Top), 2 }, 344{ nameof(Padding.Right), 3 } 379{ nameof(Padding.All), 1 }, 380{ nameof(Padding.Left), 2 }, 381{ nameof(Padding.Top), 2 }, 382{ nameof(Padding.Right), 3 }, 383{ nameof(Padding.Bottom), 4 }, 386Padding expected = new(2, 2, 3, 4); 387Padding padding = Assert.IsType<Padding>(converter.CreateInstance(mockContext.Object, propertyValues)); 404Assert.Equal(nameof(Padding.All), properties[0].Name); 405Assert.Equal(nameof(Padding.Left), properties[1].Name); 406Assert.Equal(nameof(Padding.Top), properties[2].Name); 407Assert.Equal(nameof(Padding.Right), properties[3].Name); 408Assert.Equal(nameof(Padding.Bottom), properties[4].Name); 420public Padding Padding { get; set; }
System\Windows\Forms\PaddingTests.cs (70)
15Padding padding = default; 30Padding padding = new(all); 52Padding padding = new(left, top, right, bottom); 66Padding padding = Padding.Empty; 81Padding padding = new(1, 2, 3, 4) 95Padding padding = new(1, 2, 3, 4); 98PropertyDescriptor property = properties[nameof(Padding.All)]; 103Assert.Equal(0, ((Padding)boxedPadding).All); 104Assert.Equal(0, ((Padding)boxedPadding).Left); 105Assert.Equal(0, ((Padding)boxedPadding).Top); 106Assert.Equal(0, ((Padding)boxedPadding).Right); 107Assert.Equal(0, ((Padding)boxedPadding).Bottom); 115Padding padding = new(1); 118PropertyDescriptor property = properties[nameof(Padding.All)]; 123Assert.Equal(0, ((Padding)boxedPadding).All); 124Assert.Equal(0, ((Padding)boxedPadding).Left); 125Assert.Equal(0, ((Padding)boxedPadding).Top); 126Assert.Equal(0, ((Padding)boxedPadding).Right); 127Assert.Equal(0, ((Padding)boxedPadding).Bottom); 136Padding padding = new(2) 151Padding padding = new(1, 2, 3, 4) 165Padding padding = new(1, 2, 3, 4); 168PropertyDescriptor property = properties[nameof(Padding.Left)]; 173Assert.Equal(-1, ((Padding)boxedPadding).All); 174Assert.Equal(0, ((Padding)boxedPadding).Left); 175Assert.Equal(2, ((Padding)boxedPadding).Top); 176Assert.Equal(3, ((Padding)boxedPadding).Right); 177Assert.Equal(4, ((Padding)boxedPadding).Bottom); 186Padding padding = new(5) 201Padding padding = new(1, 2, 3, 4) 215Padding padding = new(1, 2, 3, 4); 218PropertyDescriptor property = properties[nameof(Padding.Top)]; 223Assert.Equal(-1, ((Padding)boxedPadding).All); 224Assert.Equal(1, ((Padding)boxedPadding).Left); 225Assert.Equal(0, ((Padding)boxedPadding).Top); 226Assert.Equal(3, ((Padding)boxedPadding).Right); 227Assert.Equal(4, ((Padding)boxedPadding).Bottom); 236Padding padding = new(5) 251Padding padding = new(1, 2, 3, 4) 265Padding padding = new(1, 2, 3, 4); 268PropertyDescriptor property = properties[nameof(Padding.Right)]; 273Assert.Equal(-1, ((Padding)boxedPadding).All); 274Assert.Equal(1, ((Padding)boxedPadding).Left); 275Assert.Equal(2, ((Padding)boxedPadding).Top); 276Assert.Equal(0, ((Padding)boxedPadding).Right); 277Assert.Equal(4, ((Padding)boxedPadding).Bottom); 286Padding padding = new(5) 301Padding padding = new(1, 2, 3, 4) 315Padding padding = new(1, 2, 3, 4); 318PropertyDescriptor property = properties[nameof(Padding.Bottom)]; 323Assert.Equal(-1, ((Padding)boxedPadding).All); 324Assert.Equal(1, ((Padding)boxedPadding).Left); 325Assert.Equal(2, ((Padding)boxedPadding).Top); 326Assert.Equal(3, ((Padding)boxedPadding).Right); 327Assert.Equal(0, ((Padding)boxedPadding).Bottom); 336Padding padding = new(5) 354public void Padding_Add_Invoke_ReturnsExpected(Padding p1, Padding p2, Padding expected) 357Assert.Equal(expected, Padding.Add(p1, p2)); 367public void Padding_Subtract_Invoke_ReturnsExpected(Padding p1, Padding p2, Padding expected) 370Assert.Equal(expected, Padding.Subtract(p1, p2)); 393public void Padding_Equals_Invoke_ReturnsExpected(Padding padding, object other, bool expected) 395if (other is Padding otherPadding) 408Padding padding = new(1, 2, 3, 4); 415Padding padding = new(1); 422Padding padding = new(1);
System\Windows\Forms\PanelTests.cs (4)
57Assert.Equal(Padding.Empty, control.DefaultPadding); 92Assert.Equal(Padding.Empty, control.Padding); 1164public new Padding DefaultMargin => base.DefaultMargin; 1170public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\PictureBoxTests.cs (4)
56Assert.Equal(Padding.Empty, control.DefaultPadding); 87Assert.Equal(Padding.Empty, control.Padding); 2850public new Padding DefaultMargin => base.DefaultMargin; 2856public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\ProgressBarTests.cs (10)
52Assert.Equal(Padding.Empty, control.DefaultPadding); 79Assert.Equal(Padding.Empty, control.Padding); 1100public void ProgressBar_Padding_Set_GetReturnsExpected(Padding value, Padding expected) 1117public void ProgressBar_Padding_SetWithHandle_GetReturnsExpected(Padding value, Padding expected) 1158Padding padding1 = new(1); 1169Padding padding2 = new(2); 2594public new Padding DefaultMargin => base.DefaultMargin; 2600public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\PropertyGridTests.cs (10)
83Assert.Equal(Padding.Empty, control.DefaultPadding); 127Assert.Equal(Padding.Empty, control.Padding); 2231public void PropertyGrid_Padding_Set_GetReturnsExpected(Padding value, Padding expected) 2248public void PropertyGrid_Padding_SetWithHandle_GetReturnsExpected(Padding value, Padding expected) 2291Padding padding1 = new(1); 2302Padding padding2 = new(2); 4153public new Padding DefaultMargin => base.DefaultMargin; 4159public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\PropertyStoreTests.cs (3)
195Padding one = new(1, 2, 3, 4); 196Padding two = new(5, 6, 7, 8); 203store.TryGetValue(1, out Padding result).Should().BeTrue();
System\Windows\Forms\RadioButtonTests.cs (4)
58Assert.Equal(Padding.Empty, control.DefaultPadding); 93Assert.Equal(Padding.Empty, control.Padding); 1537public new Padding DefaultMargin => base.DefaultMargin; 1543public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\RichTextBoxTests.cs (4)
67Assert.Equal(Padding.Empty, control.DefaultPadding); 102Assert.Equal(Padding.Empty, control.Padding); 10934public new Padding DefaultMargin => base.DefaultMargin; 10940public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\ScrollableControlTests.cs (13)
56Assert.Equal(Padding.Empty, control.DefaultPadding); 91Assert.Equal(Padding.Empty, control.Padding); 790public void ScrollableControl_Padding_Set_GetReturnsExpected(Padding value, Padding expected, int expectedLayoutCallCount1, int expectedLayoutCallCount2) 828Padding padding1 = new(1); 839Padding padding2 = new(2); 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); 2582public new Padding DefaultMargin => base.DefaultMargin; 2588public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\ScrollBarTests.cs (6)
48Assert.Equal(Padding.Empty, control.DefaultMargin); 51Assert.Equal(Padding.Empty, control.DefaultPadding); 75Assert.Equal(Padding.Empty, control.Margin); 80Assert.Equal(Padding.Empty, control.Padding); 3170public new Padding DefaultMargin => base.DefaultMargin; 3176public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\SplitterPanelTests.cs (2)
79Assert.Equal(Padding.Empty, control.Margin); 82Assert.Equal(Padding.Empty, control.Padding);
System\Windows\Forms\SplitterTests.cs (4)
52Assert.Equal(Padding.Empty, control.DefaultPadding); 80Assert.Equal(Padding.Empty, control.Padding); 2315public new Padding DefaultMargin => base.DefaultMargin; 2321public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\StatusStripTests.cs (13)
57Assert.Equal(Padding.Empty, control.DefaultMargin); 107Assert.Equal(Padding.Empty, control.Margin); 226public void StatusStrip_DefaultPadding_Get_ReturnsExpected(ToolStripLayoutStyle layoutStyle, RightToLeft rightToLeft, Padding expected) 396yield return new object[] { default(Padding), default(Padding), 1, 1 }; 400yield return new object[] { new Padding(-1, -2, -3, -4), Padding.Empty, 1, 2 }; 405public void StatusStrip_Padding_Set_GetReturnsExpected(Padding value, Padding expected, int expectedLayoutCallCount1, int expectedLayoutCallCount2) 443Padding padding1 = new(1); 454Padding padding2 = new(2); 1282public new Padding DefaultGripMargin => base.DefaultGripMargin; 1286public new Padding DefaultMargin => base.DefaultMargin; 1292public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\TabControlTests.cs (3)
54Assert.Equal(Padding.Empty, control.DefaultPadding); 5731public new Padding DefaultMargin => base.DefaultMargin; 5737public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\TableLayoutPanelTests.cs (4)
62Assert.Equal(Padding.Empty, control.DefaultPadding); 100Assert.Equal(Padding.Empty, control.Padding); 2181public new Padding DefaultMargin => base.DefaultMargin; 2187public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\TabPageTests.cs (6)
62Assert.Equal(Padding.Empty, control.DefaultPadding); 97Assert.Equal(Padding.Empty, control.Padding); 171Assert.Equal(Padding.Empty, control.DefaultPadding); 206Assert.Equal(Padding.Empty, control.Padding); 5245public new Padding DefaultMargin => base.DefaultMargin; 5251public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\ToolStripButtonTests.cs (14)
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); 1726public new Padding DefaultMargin => base.DefaultMargin; 1728public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\ToolStripContentPanelTests.cs (4)
59Assert.Equal(Padding.Empty, control.DefaultPadding); 94Assert.Equal(Padding.Empty, control.Padding); 2026public new Padding DefaultMargin => base.DefaultMargin; 2032public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\ToolStripControlHostTests.cs (4)
74Assert.Equal(Padding.Empty, item.DefaultPadding); 103Assert.Equal(Padding.Empty, item.Padding); 4645public new Padding DefaultMargin => base.DefaultMargin; 4647public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\ToolStripDropDownItemTests.cs (10)
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); 515public new Padding DefaultMargin => base.DefaultMargin; 517public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\ToolStripDropDownTests.cs (6)
61Assert.Equal(Padding.Empty, control.DefaultMargin); 114Assert.Equal(Padding.Empty, control.Margin); 1759public void ToolStripDropDown_GripMargin_Set_GetReturnsExpected(Padding value) 5100public new Padding DefaultGripMargin => base.DefaultGripMargin; 5104public new Padding DefaultMargin => base.DefaultMargin; 5110public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\ToolStripItemTests.cs (34)
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); 2046public void ToolStripItem_ContentRectangle_GetWithLargePadding_ReturnsExpected(Padding padding, Rectangle expected) 5894protected internal override Padding DefaultMargin => new(1, 2, 3, 4); 5899public void ToolStripItem_Margin_Set_GetReturnsExpected(Padding value) 5914public void ToolStripItem_Margin_SetWithOwner_GetReturnsExpected(Padding value) 5953public void ToolStripItem_Margin_SetWithOwnerWithHandle_GetReturnsExpected(Padding value) 6005public void ToolStripItem_Margin_SetWithParent_GetReturnsExpected(Padding value) 6044public void ToolStripItem_Margin_SetWithParentWithHandle_GetReturnsExpected(Padding value) 6715protected override Padding DefaultPadding => new(2, 3, 4, 5); 6720public void ToolStripItem_Padding_Set_GetReturnsExpected(Padding value, Padding expected) 6735yield return new object[] { default(Padding), default(Padding), 0, 0 }; 6738yield return new object[] { new Padding(-1, -2, -3, -4), Padding.Empty, 1, 2 }; 6743public void ToolStripItem_Padding_SetWithOwner_GetReturnsExpected(Padding value, Padding expected, int expectedOwnerLayoutCallCount1, int expectedOwnerLayoutCallCount2) 6782public void ToolStripItem_Padding_SetWithOwnerWithHandle_GetReturnsExpected(Padding value, Padding expected, int expectedOwnerLayoutCallCount1, int expectedOwnerLayoutCallCount2) 6834public void ToolStripItem_Padding_SetWithParent_GetReturnsExpected(Padding value, Padding expected) 6866public void ToolStripItem_Padding_SetWithParentWithHandle_GetReturnsExpected(Padding value, Padding expected) 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); 15522public new Padding DefaultMargin => base.DefaultMargin; 15524public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\ToolStripMenuItemTests.cs (3)
74Assert.Equal(Padding.Empty, item.Margin); 435public new Padding DefaultMargin => base.DefaultMargin; 437public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\ToolStripPanelTests.cs (7)
56Assert.Equal(Padding.Empty, control.DefaultMargin); 59Assert.Equal(Padding.Empty, control.DefaultPadding); 91Assert.Equal(Padding.Empty, control.Margin); 94Assert.Equal(Padding.Empty, control.Padding); 285public void RowMargin_Set_GetReturnsExpected(Padding value) 369public new Padding DefaultMargin => base.DefaultMargin; 375public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\ToolStripSeparatorTests.cs (6)
40Assert.Equal(Padding.Empty, item.DefaultMargin); 41Assert.Equal(Padding.Empty, item.DefaultPadding); 65Assert.Equal(Padding.Empty, item.Margin); 71Assert.Equal(Padding.Empty, item.Padding); 1637public new Padding DefaultMargin => base.DefaultMargin; 1639public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\ToolStripTests.cs (11)
61Assert.Equal(Padding.Empty, control.DefaultMargin); 125Assert.Equal(Padding.Empty, control.Margin); 218Assert.Equal(Padding.Empty, control.DefaultMargin); 280Assert.Equal(Padding.Empty, control.Margin); 2724public void ToolStrip_GripMargin_Set_GetReturnsExpected(Padding value) 2742public void ToolStrip_GripMargin_SetWithGrip_GetReturnsExpected(Padding value) 7456var defaultGripMargin = (Padding)toolStrip.TestAccessor().Dynamic.DefaultGripMargin; 7536public new Padding DefaultGripMargin => base.DefaultGripMargin; 7540public new Padding DefaultMargin => base.DefaultMargin; 7546public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\TreeViewTests.cs (10)
54Assert.Equal(Padding.Empty, control.DefaultPadding); 93Assert.Equal(Padding.Empty, control.Padding); 2986public void TreeView_Padding_Set_GetReturnsExpected(Padding value, Padding expected) 3003public void TreeView_Padding_SetWithHandle_GetReturnsExpected(Padding value, Padding expected) 3044Padding padding1 = new(1); 3055Padding padding2 = new(2); 7582public new Padding DefaultMargin => base.DefaultMargin; 7588public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\UpDownBaseTests.cs (4)
70Assert.Equal(Padding.Empty, control.DefaultPadding); 106Assert.Equal(Padding.Empty, control.Padding); 3115public new Padding DefaultMargin => base.DefaultMargin; 3121public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\UserControlTests.cs (4)
63Assert.Equal(Padding.Empty, control.DefaultPadding); 98Assert.Equal(Padding.Empty, control.Padding); 1807public new Padding DefaultMargin => base.DefaultMargin; 1813public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\VScrollBarTests.cs (6)
53Assert.Equal(Padding.Empty, control.DefaultMargin); 56Assert.Equal(Padding.Empty, control.DefaultPadding); 84Assert.Equal(Padding.Empty, control.Margin); 89Assert.Equal(Padding.Empty, control.Padding); 246public new Padding DefaultMargin => base.DefaultMargin; 252public new Padding DefaultPadding => base.DefaultPadding;
System\Windows\Forms\WebBrowserTests.cs (10)
51Assert.Equal(Padding.Empty, control.DefaultPadding); 76Assert.Equal(Padding.Empty, control.Padding); 1316public void WebBrowser_Padding_Set_GetReturnsExpected(Padding value, Padding expected) 1333public void WebBrowser_Padding_SetWithHandle_GetReturnsExpected(Padding value, Padding expected) 1374Padding padding1 = new(1); 1385Padding padding2 = new(2); 4676public new Padding DefaultMargin => base.DefaultMargin; 4682public new Padding DefaultPadding => base.DefaultPadding;
TextBoxBaseTests.cs (9)
2190public void TextBoxBase_Padding_Set_GetReturnsExpected(Padding value, Padding expected) 2209public void TextBoxBase_Padding_SetWithHandle_GetReturnsExpected(Padding value, Padding expected) 2252Padding padding1 = new(1); 2263Padding padding2 = new(2); 5039Padding padding = new(1, 2, 3, 4); 7693public new Padding DefaultMargin => base.DefaultMargin; 7699public new Padding DefaultPadding => base.DefaultPadding;
TextBoxTests.cs (4)
60Assert.Equal(Padding.Empty, control.DefaultPadding); 89Assert.Equal(Padding.Empty, control.Padding); 691public new Padding DefaultMargin => base.DefaultMargin; 697public new Padding DefaultPadding => base.DefaultPadding;
TrackBarTests.cs (10)
53Assert.Equal(Padding.Empty, control.DefaultPadding); 83Assert.Equal(Padding.Empty, control.Padding); 1466public void TrackBar_Padding_Set_GetReturnsExpected(Padding value, Padding expected) 1483public void TrackBar_Padding_SetWithHandle_GetReturnsExpected(Padding value, Padding expected) 1524Padding padding1 = new(1); 1535Padding padding2 = new(2); 3288public new Padding DefaultMargin => base.DefaultMargin; 3294public new Padding DefaultPadding => base.DefaultPadding;
WebBrowserBaseTests.cs (2)
896public new Padding DefaultMargin => base.DefaultMargin; 902public new Padding DefaultPadding => base.DefaultPadding;
System.Windows.Forms.TestUtilities (7)
CommonTestHelperEx.cs (7)
75public static TheoryData<Padding> GetPaddingTheoryData() 77TheoryData<Padding> data = new() 87public static TheoryData<Padding, Padding> GetPaddingNormalizedTheoryData() 89var data = new TheoryData<Padding, Padding> 94{ new Padding(-1, -2, -3, -4), Padding.Empty }
WindowsFormsIntegration (2)
System\Windows\Integration\Convert.cs (1)
300internal static Padding ToSystemWindowsFormsPadding(Thickness thickness)
System\Windows\Integration\WindowsFormsHost.cs (1)
337Child.Margin = SWF.Padding.Empty;