1 override of Padding
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonButton.cs (1)
51
public override Padding
Padding
20 writes to Padding
System.Windows.Forms (3)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
517
menuItem.
Padding
= Padding;
System\Windows\Forms\MDI\MDIControlStrip.cs (2)
55
item.
Padding
= Padding.Empty;
69
_system.
Padding
= Padding.Empty;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1382
_centerLabel.
Padding
= new Padding(0, 1, 0, 0);
System.Windows.Forms.Tests (16)
System\Windows\Forms\ToolStripControlHostTests.cs (1)
2742
Padding
= new Padding(1, 2, 3, 4)
System\Windows\Forms\ToolStripItemTests.cs (14)
2050
Padding
= padding
6724
Padding
= value
6729
item.
Padding
= value;
6763
item.
Padding
= value;
6769
item.
Padding
= value;
6809
item.
Padding
= value;
6818
item.
Padding
= value;
6847
item.
Padding
= value;
6853
item.
Padding
= value;
6886
item.
Padding
= value;
6895
item.
Padding
= value;
6916
item.
Padding
= new Padding(1, 2, 3, 4);
6932
item.
Padding
= new Padding(1, 2, 3, 4);
14225
item.
Padding
= new Padding(1, 2, 3, 4);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
297
Padding
= new Padding(2),
51 references to Padding
System.Windows.Forms (13)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (3)
476
? _control.GetPreferredSize(constrainingSize -
Padding
.Size) +
Padding
.Size
650
Size size = LayoutUtils.DeflateRect(Bounds,
Padding
).Size;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (6)
566
Rectangle content = LayoutUtils.InflateRect(InternalLayout.ContentRectangle,
Padding
);
1516
if (
Padding
!= value)
2348
return InternalLayout.GetPreferredSize(constrainingSize -
Padding
.Size) +
Padding
.Size;
3319
/// Determines if the <see cref="
Padding
"/> property needs to be persisted.
3322
private bool ShouldSerializePadding() =>
Padding
!= DefaultPadding;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
517
menuItem.Padding =
Padding
;
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflowButton.cs (1)
86
return preferredSize +
Padding
.Size;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
350
preferredSize.Width += DropDownButtonWidth + SplitterWidth +
Padding
.Horizontal;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonButton.cs (1)
55
return _owner.
Padding
;
System.Windows.Forms.Tests (38)
System\Windows\Forms\ToolStripButtonTests.cs (6)
74
Assert.Equal(Padding.Empty, item.
Padding
);
155
Assert.Equal(Padding.Empty, item.
Padding
);
242
Assert.Equal(Padding.Empty, item.
Padding
);
332
Assert.Equal(Padding.Empty, item.
Padding
);
420
Assert.Equal(Padding.Empty, item.
Padding
);
518
Assert.Equal(Padding.Empty, item.
Padding
);
System\Windows\Forms\ToolStripControlHostTests.cs (1)
103
Assert.Equal(Padding.Empty, item.
Padding
);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
74
Assert.Equal(Padding.Empty, item.
Padding
);
163
Assert.Equal(Padding.Empty, item.
Padding
);
262
Assert.Equal(Padding.Empty, item.
Padding
);
370
Assert.Equal(Padding.Empty, item.
Padding
);
System\Windows\Forms\ToolStripItemTests.cs (23)
73
Assert.Equal(Padding.Empty, item.
Padding
);
158
Assert.Equal(Padding.Empty, item.
Padding
);
253
Assert.Equal(Padding.Empty, item.
Padding
);
6710
Assert.Equal(new Padding(2, 3, 4, 5), item.
Padding
);
6726
Assert.Equal(expected, item.
Padding
);
6730
Assert.Equal(expected, item.
Padding
);
6764
Assert.Equal(expected, item.
Padding
);
6770
Assert.Equal(expected, item.
Padding
);
6810
Assert.Equal(expected, item.
Padding
);
6819
Assert.Equal(expected, item.
Padding
);
6848
Assert.Equal(expected, item.
Padding
);
6854
Assert.Equal(expected, item.
Padding
);
6887
Assert.Equal(expected, item.
Padding
);
6896
Assert.Equal(expected, item.
Padding
);
6912
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.
Padding
)];
6917
Assert.Equal(new Padding(1, 2, 3, 4), item.
Padding
);
6921
Assert.Equal(Padding.Empty, item.
Padding
);
6928
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.
Padding
)];
6933
Assert.Equal(new Padding(1, 2, 3, 4), item.
Padding
);
6937
Assert.Equal(Padding.Empty, item.
Padding
);
14222
Assert.Equal(Padding.Empty, item.
Padding
);
14227
Assert.Equal(Padding.Empty, item.
Padding
);
14231
Assert.Equal(Padding.Empty, item.
Padding
);
System\Windows\Forms\ToolStripMenuItemTests.cs (3)
81
Assert.Equal(new Padding(4, 0, 4, 0), item.
Padding
);
342
clone.
Padding
.Should().Be(original.
Padding
);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
71
Assert.Equal(Padding.Empty, item.
Padding
);