10 overrides of DefaultMargin
System.Windows.Forms (9)
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (1)
107
protected internal override Padding
DefaultMargin
=> IsOnDropDown
System\Windows\Forms\Controls\ToolStrips\ToolStripGrip.cs (1)
25
protected internal override Padding
DefaultMargin
=> _defaultPadding;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
218
protected internal override Padding
DefaultMargin
=> Padding.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflowButton.cs (1)
43
protected internal override Padding
DefaultMargin
=> Padding.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripProgressBar.cs (1)
83
protected internal override Padding
DefaultMargin
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.cs (1)
46
protected internal override Padding
DefaultMargin
=> Padding.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
56
protected internal override Padding
DefaultMargin
=> Padding.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripStatusLabel.cs (1)
125
protected internal override Padding
DefaultMargin
=> _defaultMargin;
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
75
protected internal override Padding
DefaultMargin
=> IsOnDropDown ? _defaultDropDownMargin : _defaultMargin;
System.Windows.Forms.Tests (1)
System\Windows\Forms\ToolStripItemTests.cs (1)
5894
protected internal override Padding
DefaultMargin
=> new(1, 2, 3, 4);
7 references to DefaultMargin
System.Windows.Forms (3)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (3)
3271
if (_state[s_stateUseAmbientMargin] && Margin !=
DefaultMargin
)
3273
CommonProperties.SetMargin(this,
DefaultMargin
);
3320
private bool ShouldSerializeMargin() => Margin !=
DefaultMargin
;
System.Windows.Forms.Tests (4)
System\Windows\Forms\ToolStripButtonTests.cs (1)
1726
public new Padding DefaultMargin => base.
DefaultMargin
;
System\Windows\Forms\ToolStripControlHostTests.cs (1)
4645
public new Padding DefaultMargin => base.
DefaultMargin
;
System\Windows\Forms\ToolStripDropDownItemTests.cs (1)
515
public new Padding DefaultMargin => base.
DefaultMargin
;
System\Windows\Forms\ToolStripItemTests.cs (1)
15503
public new Padding DefaultMargin => base.
DefaultMargin
;