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