187 writes to Padding
Accessibility_Core_App (27)
CommonControl1.Designer.cs (8)
108
this.groupBox1.
Padding
= new System.Windows.Forms.Padding(7, 6, 7, 6);
236
this.groupBox2.
Padding
= new System.Windows.Forms.Padding(7, 6, 7, 6);
310
this.groupBox3.
Padding
= new System.Windows.Forms.Padding(7, 6, 7, 6);
374
this.groupBox4.
Padding
= new System.Windows.Forms.Padding(7, 6, 7, 6);
421
this.groupBox5.
Padding
= new System.Windows.Forms.Padding(7, 6, 7, 6);
566
this.groupBox6.
Padding
= new System.Windows.Forms.Padding(7, 6, 7, 6);
604
this.groupBox7.
Padding
= new System.Windows.Forms.Padding(7, 6, 7, 6);
636
this.groupBox8.
Padding
= new System.Windows.Forms.Padding(7, 6, 7, 6);
ContainerControls.Designer.cs (14)
200
this.groupBox1.
Padding
= new System.Windows.Forms.Padding(4, 3, 4, 3);
223
this.groupBox2.
Padding
= new System.Windows.Forms.Padding(4, 3, 4, 3);
246
this.groupBox3.
Padding
= new System.Windows.Forms.Padding(4, 3, 4, 3);
269
this.groupBox4.
Padding
= new System.Windows.Forms.Padding(4, 3, 4, 3);
434
this.tabPage9.
Padding
= new System.Windows.Forms.Padding(4, 3, 4, 3);
456
this.tabPage10.
Padding
= new System.Windows.Forms.Padding(4, 3, 4, 3);
480
this.tabPage11.
Padding
= new System.Windows.Forms.Padding(4, 3, 4, 3);
502
this.tabPage12.
Padding
= new System.Windows.Forms.Padding(4, 3, 4, 3);
598
this.tabPage1.
Padding
= new System.Windows.Forms.Padding(4, 3, 4, 3);
610
this.tabPage2.
Padding
= new System.Windows.Forms.Padding(4, 3, 4, 3);
664
this.tabPage3.
Padding
= new System.Windows.Forms.Padding(4, 3, 4, 3);
686
this.tabPage4.
Padding
= new System.Windows.Forms.Padding(4, 3, 4, 3);
770
this.tabPage5.
Padding
= new System.Windows.Forms.Padding(4, 3, 4, 3);
782
this.tabPage6.
Padding
= new System.Windows.Forms.Padding(4, 3, 4, 3);
ContainerControls2.Designer.cs (3)
294
this.groupBox5.
Padding
= new System.Windows.Forms.Padding(4, 3, 4, 3);
374
this.tabPage7.
Padding
= new System.Windows.Forms.Padding(4, 3, 4, 3);
385
this.tabPage8.
Padding
= new System.Windows.Forms.Padding(4, 3, 4, 3);
Menu_Toolbars_controls.Designer.cs (1)
113
menuStrip1.
Padding
= new Padding(8, 3, 0, 3);
ToolStripContainer.Designer.cs (1)
138
this.toolStrip1.
Padding
= new System.Windows.Forms.Padding(0, 0, 2, 0);
DesignSurface (7)
MainForm.Designer.cs (7)
104
this.tabPage1.
Padding
= new System.Windows.Forms.Padding(3);
114
this.tabPage2.
Padding
= new System.Windows.Forms.Padding(3);
124
this.tabPage3.
Padding
= new System.Windows.Forms.Padding(3);
134
this.tabPage4.
Padding
= new System.Windows.Forms.Padding(3);
144
this.tabPage5.
Padding
= new System.Windows.Forms.Padding(3);
154
this.tabPage6.
Padding
= new System.Windows.Forms.Padding(3);
169
this.menuStrip1.
Padding
= new System.Windows.Forms.Padding(8, 2, 0, 2);
PresentationUI (23)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (3)
115
this._okButton.
Padding
= new System.Windows.Forms.Padding(0, 3, 0, 0);
154
this._summaryTab.
Padding
= new System.Windows.Forms.Padding(12);
737
this.
Padding
= new System.Windows.Forms.Padding(3);
MS\Internal\Documents\RequestedSignatureDialog.Designer.cs (2)
72
_addButton.
Padding
= new System.Windows.Forms.Padding(20, 0, 20, 0);
82
_cancelButton.
Padding
= new System.Windows.Forms.Padding(20, 0, 20, 0);
MS\Internal\Documents\RMPermissions.Designer.cs (1)
68
this.mainContentFlowPanel.
Padding
= new System.Windows.Forms.Padding(5);
MS\Internal\Documents\RMPublishingDialog.Designer.cs (5)
86
this.flowLayoutPanelMain.
Padding
= new System.Windows.Forms.Padding(8);
134
this.flowLayoutPanelUnrestricted.
Padding
= new System.Windows.Forms.Padding(5, 18, 5, 5);
146
this.flowLayoutPanelPermissions.
Padding
= new System.Windows.Forms.Padding(5, 18, 5, 5);
156
this.flowLayoutPanelTemplate.
Padding
= new System.Windows.Forms.Padding(5, 18, 5, 5);
173
this.labelSelectTemplate.
Padding
= new System.Windows.Forms.Padding(3);
MS\Internal\Documents\SignatureSummaryDialog.cs (6)
243
nameHeader.
Padding
= columnPadding;
252
intentHeader.
Padding
= columnPadding;
261
locationHeader.
Padding
= columnPadding;
270
signByHeader.
Padding
= columnPadding;
287
statusHeader.
Padding
= columnPadding;
296
intentHeader.
Padding
= columnPadding;
MS\Internal\Documents\SignatureSummaryDialog.Designer.cs (2)
81
_flowpanelMiddleControls.
Padding
= new System.Windows.Forms.Padding(0, 5, 0, 0);
94
_flowpanelBottomControls.
Padding
= new System.Windows.Forms.Padding(0, 5, 0, 0);
MS\Internal\Documents\SigningDialog.Designer.cs (4)
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);
System.Windows.Forms (27)
System\Windows\Forms\Control.cs (1)
9711
Padding
= padding;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
733
set => base.
Padding
= value;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
3035
set => base.
Padding
= value;
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
721
set => base.
Padding
= value;
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
338
set => base.
Padding
= value;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
1208
set => base.
Padding
= value;
System\Windows\Forms\Controls\ListView\ListView.cs (1)
2112
set => base.
Padding
= value;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
561
set => base.
Padding
= value;
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
364
set => base.
Padding
= value;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
203
_toolStrip.
Padding
= toolStripPadding;
812
set => base.
Padding
= value;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
763
set => base.
Padding
= value;
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
130
set => base.
Padding
= value;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (2)
431
Padding
= DefaultPadding;
533
Padding
= DefaultPadding;
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
407
set => base.
Padding
= value;
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
942
set => base.
Padding
= value;
System\Windows\Forms\Controls\UpDown\DomainUpDown.cs (1)
66
set => base.
Padding
= value;
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (1)
227
set => base.
Padding
= value;
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
498
set => base.
Padding
= value;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
506
set => base.
Padding
= value;
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
270
set => base.
Padding
= value;
System\Windows\Forms\Scrolling\ScrollableControl.DockPaddingEdgesConverter.cs (5)
88
_owner.
Padding
= new Padding(value);
111
_owner.
Padding
= padding;
134
_owner.
Padding
= padding;
157
_owner.
Padding
= padding;
180
_owner.
Padding
= padding;
System.Windows.Forms.Design (30)
System\ComponentModel\Design\BinaryEditor.BinaryUI.cs (3)
187
_buttonOK.
Padding
= new Padding(10, 0, 10, 0);
197
_buttonSave.
Padding
= new Padding(10, 0, 10, 0);
207
_groupBoxMode.
Padding
= new Padding(0);
System\ComponentModel\Design\DesignerActionUI.cs (1)
700
Padding
= Padding.Empty,
System\ComponentModel\Design\ToolStripContainerActionList.cs (1)
63
panel.
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 (1)
159
Padding
= new Padding(1, 1, 1, 1);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (5)
497
_addButton.
Padding
= new Padding(10, 0, 10, 0);
505
_deleteButton.
Padding
= new Padding(10, 0, 10, 0);
604
_cancelButton.
Padding
= new Padding(10, 0, 10, 0);
612
_okButton.
Padding
= new Padding(10, 0, 10, 0);
626
Padding
= new Padding(12);
System\Windows\Forms\Design\FormatStringDialog.cs (1)
217
Padding
= new Padding(0);
System\Windows\Forms\Design\MaskDesignerDialog.cs (2)
192
_btnOK.
Padding
= new Padding(10, 0, 10, 0);
201
_btnCancel.
Padding
= new Padding(10, 0, 10, 0);
System\Windows\Forms\Design\MaskedTextBoxTextEditorDropDown.cs (1)
53
Padding
= new Padding(16);
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (1)
218
Padding
= new Padding(4);
System\Windows\Forms\Design\StyleEditorForm.cs (6)
214
_addButton.
Padding
= new Padding(10, 0, 10, 0);
222
_removeButton.
Padding
= new Padding(10, 0, 10, 0);
230
_insertButton.
Padding
= new Padding(10, 0, 10, 0);
249
_okButton.
Padding
= new Padding(10, 0, 10, 0);
258
_cancelButton.
Padding
= new Padding(10, 0, 10, 0);
376
_sizeTypeGroupBox.
Padding
= new Padding(0);
System\Windows\Forms\Design\TabControlDesigner.cs (1)
271
page.
Padding
= new Padding(3);
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (2)
264
Control.
Padding
= new Padding(0, 0, 25, 25);
372
Control.
Padding
= new Padding(0);
System.Windows.Forms.Tests (63)
System\Windows\Forms\ButtonTests.cs (12)
1252
Padding
= new Padding(1, 2, 3, 4)
1303
Padding
= new Padding(1, 2, 3, 4)
1335
Padding
= new Padding(1, 2, 3, 4),
1359
Padding
= new Padding(1, 2, 3, 4),
1519
Padding
= new Padding(1, 2, 3, 4)
1599
Padding
= new Padding(1, 2, 3, 4)
1631
Padding
= new Padding(1, 2, 3, 4),
1655
Padding
= new Padding(1, 2, 3, 4),
1679
Padding
= new Padding(1, 2, 3, 4),
1703
Padding
= new Padding(1, 2, 3, 4),
1727
Padding
= new Padding(1, 2, 3, 4),
1751
Padding
= new Padding(1, 2, 3, 4),
System\Windows\Forms\ControlTests.Properties.cs (15)
9423
control.
Padding
= value;
9429
control.
Padding
= value;
9463
control.
Padding
= value;
9471
control.
Padding
= value;
9515
control.
Padding
= value;
9524
control.
Padding
= value;
9575
control.
Padding
= value;
9589
control.
Padding
= value;
9620
control.
Padding
= padding1;
9625
control.
Padding
= padding1;
9631
control.
Padding
= padding2;
9637
control.
Padding
= padding1;
9649
control.
Padding
= new Padding(1, 2, 3, 4);
9665
control.
Padding
= new Padding(1, 2, 3, 4);
9854
Padding
= new Padding(1, 2, 3, 4)
System\Windows\Forms\DockPaddingEdgesTests.cs (22)
24
Padding
= new Padding(left, top, right, bottom)
62
Padding
= new Padding(1, 2, 3, 4)
83
Padding
= new Padding(1, 2, 3, 4)
105
Padding
= new Padding(1, 2, 3, 4)
126
Padding
= new Padding(1, 2, 3, 4)
148
Padding
= new Padding(1, 2, 3, 4)
169
Padding
= new Padding(1, 2, 3, 4)
191
Padding
= new Padding(1, 2, 3, 4)
212
Padding
= new Padding(1, 2, 3, 4)
234
Padding
= new Padding(1, 2, 3, 4)
252
Padding
= new Padding(left, top, right, bottom)
304
Padding
= new Padding(1, 2, 3, 4)
316
Padding
= new Padding(1, 2, 3, 4)
329
Padding
= new Padding(1, 2, 3, 4)
345
Padding
= new Padding(1, 2, 3, 4)
362
Padding
= new Padding(1, 2, 3, 4)
373
Padding
= new Padding(1, 2, 3, 4)
385
Padding
= new Padding(1, 2, 3, 4)
406
Padding
= new Padding(1, 2, 3, 4)
427
Padding
= new Padding(1, 2, 3, 4)
448
Padding
= new Padding(1, 2, 3, 4)
469
Padding
= new Padding(1, 2, 3, 4)
System\Windows\Forms\GroupBoxTests.cs (1)
938
Padding
= new Padding(1, 2, 3, 4)
System\Windows\Forms\PanelTests.cs (1)
625
Padding
= new Padding(1, 2, 3, 4)
System\Windows\Forms\ScrollableControlTests.cs (12)
712
Padding
= new Padding(1, 2, 3, 4),
802
control.
Padding
= value;
808
control.
Padding
= value;
829
control.
Padding
= padding1;
834
control.
Padding
= padding1;
840
control.
Padding
= padding2;
846
control.
Padding
= padding1;
2092
Padding
= new Padding(1, 2, 3, 4)
2107
Padding
= new Padding(1, 2, 3, 4)
2155
Padding
= new Padding(1, 2, 3, 4)
2170
Padding
= new Padding(1, 2, 3, 4)
2190
Padding
= new Padding(1, 2, 3, 4)
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (1)
258
childControl.
Padding
= Convert.ToSystemWindowsFormsPadding((SW.Thickness)value);
WinFormsControlsTest (9)
ComboBoxesWithScrollBars.Designer.cs (4)
116
this.changeHeightGroupBox1.
Padding
= new System.Windows.Forms.Padding(4, 3, 4, 3);
203
this.changeMaxDropDownItemsGroupBox2.
Padding
= new System.Windows.Forms.Padding(4, 3, 4, 3);
257
this.changeIntegralHeightGroupBox3.
Padding
= new System.Windows.Forms.Padding(4, 3, 4, 3);
304
this.changeHeightsStyleGroupBox4.
Padding
= new System.Windows.Forms.Padding(4, 3, 4, 3);
MainForm.Designer.cs (1)
53
this.
Padding
= new System.Windows.Forms.Padding(8);
MenuStripAndCheckedListBox.Designer.cs (1)
75
this.menuStrip1.
Padding
= new System.Windows.Forms.Padding(12, 4, 0, 4);
ScrollableControls.Designer.cs (2)
326
tabPage1.
Padding
= new Padding(3);
345
tabPage2.
Padding
= new Padding(3);
TrackBars.Designer.cs (1)
101
this.gbOrientation.
Padding
= new System.Windows.Forms.Padding(3, 2, 3, 2);
181 references to Padding
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.cs (1)
505
int totalPadding = button.
Padding
.Horizontal + button.Margin.Horizontal;
System.Windows.Forms (77)
System\Windows\Forms\Control.cs (3)
3752
if (value !=
Padding
)
9680
Padding padding =
Padding
;
10610
return !
Padding
.Equals(DefaultPadding);
System\Windows\Forms\Controls\Buttons\Button.cs (1)
106
Size paddedSize = _systemSize +
Padding
.Size;
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
961
return LayoutUtils.UnionSizes(preferedSize +
Padding
.Size, MinimumSize);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (2)
592
Client = LayoutUtils.DeflateRect(Control.ClientRectangle, Control.
Padding
),
593
Padding = Control.
Padding
,
System\Windows\Forms\Controls\Buttons\CheckBox.cs (1)
289
return size +
Padding
.Size;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
732
get => base.
Padding
;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
3034
get => base.
Padding
;
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
720
get => base.
Padding
;
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (2)
162
Padding padding =
Padding
;
603
Size totalPadding = borderSize + new Size(0, _fontHeight) +
Padding
.Size;
System\Windows\Forms\Controls\Labels\Label.cs (2)
1001
Size bordersAndPadding =
Padding
.Size;
1254
Rectangle face = LayoutUtils.DeflateRect(ClientRectangle,
Padding
);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
337
get => base.
Padding
;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
1207
get => base.
Padding
;
System\Windows\Forms\Controls\ListView\ListView.cs (1)
2111
get => base.
Padding
;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
560
get => base.
Padding
;
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (2)
344
Rectangle result = LayoutUtils.DeflateRect(ClientRectangle,
Padding
);
1040
Size bordersAndPadding = SizeFromClientSize(Size.Empty) +
Padding
.Size;
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
363
get => base.
Padding
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
201
Padding toolStripPadding = _toolStrip.
Padding
;
811
get => base.
Padding
;
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
611
Rectangle inflateRect = LayoutUtils.InflateRect(DisplayRectangle,
Padding
);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
762
get => base.
Padding
;
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
129
get => base.
Padding
;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (5)
1365
_toolStripOverflowButton.Size = _toolStripOverflowButton.GetPreferredSize(DisplayRectangle.Size -
Padding
.Size);
2250
Padding padding =
Padding
;
2252
Padding newPadding =
Padding
;
2275
Size defaultSize = toolStrip.DefaultSize - toolStrip.
Padding
.Size;
3261
_toolStripOverflowButton!.Size = _toolStripOverflowButton.GetPreferredSize(DisplayRectangle.Size -
Padding
.Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
552
return Screen.GetWorkingArea(Bounds).Size -
Padding
.Size;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (2)
99
rect = LayoutUtils.InflateRect(rect, new Padding(0,
Padding
.Top, 0,
Padding
.Bottom));
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
1075
rect.X -= dropDownMenu.
Padding
.Left;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (2)
869
index = (clientLocation.Y <=
Padding
.Left) ? 0 : index;
875
index = (clientLocation.X <=
Padding
.Left) ? 0 : index;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (3)
35
displayRect.Width = ToolStripPanel.ParentInternal.DisplayRectangle.Width - (ToolStripPanel.Margin.Horizontal + ToolStripPanel.
Padding
.Horizontal) - Row.Margin.Horizontal;
70
dragBounds.Width += Row.Margin.Horizontal + ToolStripPanel.
Padding
.Horizontal + 5;
71
dragBounds.X -= Row.Margin.Left + ToolStripPanel.
Padding
.Left + 4;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (3)
36
displayRect.Height = ToolStripPanel.ParentInternal.DisplayRectangle.Height - (ToolStripPanel.Margin.Vertical + ToolStripPanel.
Padding
.Vertical) - Row.Margin.Vertical;
71
dragBounds.Height += Row.Margin.Vertical + ToolStripPanel.
Padding
.Vertical + 5;
72
dragBounds.Y -= Row.Margin.Top + ToolStripPanel.
Padding
.Top + 4;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (2)
1477
bounds.X += dropDownMenu.
Padding
.Left - 2;
1485
bounds.Width = dropDownMenu.Width - bounds.X - dropDownMenu.
Padding
.Right;
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
268
return new Size(parent.Width - (parent.
Padding
.Horizontal - dropDownMenu.ImageMargin.Width), SeparatorThickness);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (1)
372
toolStripPreferredSize = ToolStrip.GetPreferredSizeVertical(toolStrip) - toolStrip.
Padding
.Size;
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
406
get => base.
Padding
;
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
941
get => base.
Padding
;
System\Windows\Forms\Controls\UpDown\DomainUpDown.cs (1)
65
get => base.
Padding
;
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (1)
226
get => base.
Padding
;
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
497
get => base.
Padding
;
System\Windows\Forms\Layout\CommonProperties.cs (1)
250
/// responsibility to do layout. See <see cref="Control.
Padding
"/> for details.
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
686
Size totalPadding = borderSize +
Padding
.Size;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
505
get => base.
Padding
;
System\Windows\Forms\Layout\DefaultLayout.cs (1)
669
containerPadding = control.
Padding
;
System\Windows\Forms\Panels\Panel.cs (1)
156
Size totalPadding = borderSize +
Padding
.Size;
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
269
get => base.
Padding
;
System\Windows\Forms\Scrolling\ScrollableControl.cs (3)
210
return LayoutUtils.DeflateRect(rect,
Padding
);
343
_scrollMargin.Height +=
Padding
.Bottom;
344
_scrollMargin.Width +=
Padding
.Right;
System\Windows\Forms\Scrolling\ScrollableControl.DockPaddingEdgesConverter.cs (15)
64
if (_owner.
Padding
.All == -1
66
(_owner.
Padding
.Left != -1
67
|| _owner.
Padding
.Top != -1
68
|| _owner.
Padding
.Right != -1
69
|| _owner.
Padding
.Bottom != -1))
74
return _owner.
Padding
.All;
100
get => _owner is null ? _bottom : _owner.
Padding
.Bottom;
109
Padding padding = _owner.
Padding
;
123
get => _owner is null ? _left : _owner.
Padding
.Left;
132
Padding padding = _owner.
Padding
;
146
get => _owner is null ? _right : _owner.
Padding
.Right;
155
Padding padding = _owner.
Padding
;
169
get => _owner is null ? _top : _owner.
Padding
.Top;
178
Padding padding = _owner.
Padding
;
208
_owner?.
Padding
.Scale(dx, dy);
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\FormDocumentDesigner.cs (1)
198
if (Control.
Padding
== Padding.Empty && snapLines is not null)
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
323
Padding = Control.
Padding
;
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
100
Assert.Equal(Padding.Empty, control.
Padding
);
System.Windows.Forms.Tests (99)
System\Windows\Forms\AxHostTests.cs (2)
93
Assert.Equal(Padding.Empty, control.
Padding
);
187
Assert.Equal(Padding.Empty, control.
Padding
);
System\Windows\Forms\ButtonBaseTests.cs (1)
90
Assert.Equal(Padding.Empty, control.
Padding
);
System\Windows\Forms\ButtonTests.cs (1)
93
Assert.Equal(Padding.Empty, control.
Padding
);
System\Windows\Forms\CheckBoxTests.cs (1)
94
Assert.Equal(Padding.Empty, control.
Padding
);
System\Windows\Forms\ContainerControlTests.cs (1)
98
Assert.Equal(Padding.Empty, control.
Padding
);
System\Windows\Forms\ControlTests.cs (5)
76
Assert.Equal(Padding.Empty, control.
Padding
);
165
Assert.Equal(Padding.Empty, control.
Padding
);
261
Assert.Equal(Padding.Empty, control.
Padding
);
357
Assert.Equal(Padding.Empty, control.
Padding
);
453
Assert.Equal(Padding.Empty, control.
Padding
);
System\Windows\Forms\ControlTests.Properties.cs (19)
9393
Assert.Equal(expected, control.
Padding
);
9424
Assert.Equal(expected, control.
Padding
);
9430
Assert.Equal(expected, control.
Padding
);
9464
Assert.Equal(expected, control.
Padding
);
9472
Assert.Equal(expected, control.
Padding
);
9516
Assert.Equal(expected, control.
Padding
);
9525
Assert.Equal(expected, control.
Padding
);
9576
Assert.Equal(expected, control.
Padding
);
9590
Assert.Equal(expected, control.
Padding
);
9621
Assert.Equal(padding1, control.
Padding
);
9626
Assert.Equal(padding1, control.
Padding
);
9632
Assert.Equal(padding2, control.
Padding
);
9638
Assert.Equal(padding1, control.
Padding
);
9645
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.
Padding
)];
9650
Assert.Equal(new Padding(1, 2, 3, 4), control.
Padding
);
9654
Assert.Equal(Padding.Empty, control.
Padding
);
9661
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.
Padding
)];
9666
Assert.Equal(new Padding(1, 2, 3, 4), control.
Padding
);
9670
Assert.Equal(Padding.Empty, control.
Padding
);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
128
Assert.Equal(Padding.Empty, control.
Padding
);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
99
Assert.Equal(Padding.Empty, control.
Padding
);
System\Windows\Forms\DockPaddingEdgesTests.cs (25)
49
Assert.Equal(expectedPaddingAll, owner.
Padding
.All);
50
Assert.Equal(expectedValue, owner.
Padding
.Left);
51
Assert.Equal(expectedValue, owner.
Padding
.Top);
52
Assert.Equal(expectedValue, owner.
Padding
.Right);
53
Assert.Equal(expectedValue, owner.
Padding
.Bottom);
92
Assert.Equal(-1, owner.
Padding
.All);
93
Assert.Equal(expectedLeft, owner.
Padding
.Left);
94
Assert.Equal(2, owner.
Padding
.Top);
95
Assert.Equal(3, owner.
Padding
.Right);
96
Assert.Equal(4, owner.
Padding
.Bottom);
135
Assert.Equal(-1, owner.
Padding
.All);
136
Assert.Equal(1, owner.
Padding
.Left);
137
Assert.Equal(expectedTop, owner.
Padding
.Top);
138
Assert.Equal(3, owner.
Padding
.Right);
139
Assert.Equal(4, owner.
Padding
.Bottom);
178
Assert.Equal(-1, owner.
Padding
.All);
179
Assert.Equal(1, owner.
Padding
.Left);
180
Assert.Equal(2, owner.
Padding
.Top);
181
Assert.Equal(expectedRight, owner.
Padding
.Right);
182
Assert.Equal(4, owner.
Padding
.Bottom);
221
Assert.Equal(-1, owner.
Padding
.All);
222
Assert.Equal(1, owner.
Padding
.Left);
223
Assert.Equal(2, owner.
Padding
.Top);
224
Assert.Equal(3, owner.
Padding
.Right);
225
Assert.Equal(expectedBottom, owner.
Padding
.Bottom);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
92
Assert.Equal(Padding.Empty, control.
Padding
);
System\Windows\Forms\FormTests.cs (1)
130
Assert.Equal(Padding.Empty, control.
Padding
);
System\Windows\Forms\GroupBoxTests.cs (1)
80
Assert.Equal(new Padding(3), control.
Padding
);
System\Windows\Forms\HScrollBarTests.cs (1)
90
Assert.Equal(Padding.Empty, control.
Padding
);
System\Windows\Forms\LabelTests.cs (1)
85
Assert.Equal(Padding.Empty, control.
Padding
);
System\Windows\Forms\ListControlTests.cs (1)
86
Assert.Equal(Padding.Empty, control.
Padding
);
System\Windows\Forms\MdiClientTests.cs (1)
66
Assert.Equal(Padding.Empty, control.
Padding
);
System\Windows\Forms\MenuStripTests.cs (1)
116
Assert.Equal(new Padding(6, 2, 0, 2), control.
Padding
);
System\Windows\Forms\PanelTests.cs (1)
92
Assert.Equal(Padding.Empty, control.
Padding
);
System\Windows\Forms\PictureBoxTests.cs (1)
87
Assert.Equal(Padding.Empty, control.
Padding
);
System\Windows\Forms\RadioButtonTests.cs (1)
93
Assert.Equal(Padding.Empty, control.
Padding
);
System\Windows\Forms\ScrollableControlTests.cs (17)
91
Assert.Equal(Padding.Empty, control.
Padding
);
803
Assert.Equal(expected, control.
Padding
);
809
Assert.Equal(expected, control.
Padding
);
830
Assert.Equal(padding1, control.
Padding
);
835
Assert.Equal(padding1, control.
Padding
);
841
Assert.Equal(padding2, control.
Padding
);
847
Assert.Equal(padding1, control.
Padding
);
2072
Assert.Equal(Padding.Empty, control.
Padding
);
2084
Assert.Equal(Padding.Empty, control.
Padding
);
2099
Assert.Equal(new Padding(1, 2, 3, 4), control.
Padding
);
2118
Assert.Equal(new Padding(1, 2, 3, 4), control.
Padding
);
2135
Assert.Equal(Padding.Empty, control.
Padding
);
2147
Assert.Equal(Padding.Empty, control.
Padding
);
2162
Assert.Equal(new Padding(1, 2, 3, 4), control.
Padding
);
2181
Assert.Equal(new Padding(1, 2, 3, 4), control.
Padding
);
2202
Assert.Equal(new Padding(10, 40, 30, 80), control.
Padding
);
2214
Assert.Equal(Padding.Empty, control.
Padding
);
System\Windows\Forms\ScrollBarTests.cs (1)
80
Assert.Equal(Padding.Empty, control.
Padding
);
System\Windows\Forms\SplitterPanelTests.cs (1)
82
Assert.Equal(Padding.Empty, control.
Padding
);
System\Windows\Forms\SplitterTests.cs (1)
80
Assert.Equal(Padding.Empty, control.
Padding
);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
100
Assert.Equal(Padding.Empty, control.
Padding
);
System\Windows\Forms\TabPageTests.cs (2)
97
Assert.Equal(Padding.Empty, control.
Padding
);
206
Assert.Equal(Padding.Empty, control.
Padding
);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
94
Assert.Equal(Padding.Empty, control.
Padding
);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
124
Assert.Equal(new Padding(1, 2, 1, 2), control.
Padding
);
System\Windows\Forms\ToolStripPanelTests.cs (1)
94
Assert.Equal(Padding.Empty, control.
Padding
);
System\Windows\Forms\ToolStripTests.cs (2)
132
Assert.Equal(new Padding(0, 0, 1, 0), control.
Padding
);
287
Assert.Equal(new Padding(0, 0, 1, 0), control.
Padding
);
System\Windows\Forms\UpDownBaseTests.cs (1)
106
Assert.Equal(Padding.Empty, control.
Padding
);
System\Windows\Forms\UserControlTests.cs (1)
98
Assert.Equal(Padding.Empty, control.
Padding
);
System\Windows\Forms\VScrollBarTests.cs (1)
89
Assert.Equal(Padding.Empty, control.
Padding
);
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
974
OnPropertyChanged("Padding", this.
Padding
);