4 writes to Margin
System.Windows.Forms (4)
winforms\Managed\System\WinForms\ToolStrip.cs (2)
922
toolStripGrip.
Margin
= DefaultGripMargin;
981
Grip.
Margin
= value;
winforms\Managed\System\WinForms\ToolStripGrip.cs (1)
246
this.
Margin
= DefaultMargin;
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
638
menuItem.
Margin
= this.Margin;
27 references to Margin
System.Windows.Forms (27)
winforms\Managed\System\WinForms\ToolStrip.cs (13)
854
int gripwidth = Grip.GripThickness + Grip.
Margin
.Horizontal;
860
int gripheight = Grip.GripThickness + Grip.
Margin
.Vertical;
978
return Grip.
Margin
;
2493
Padding itemMargin = item.
Margin
;
2513
Padding overflowItemMargin = overflowItem.
Margin
;
2549
Padding itemMargin = item.
Margin
;
2568
Padding overflowItemMargin = overflowItem.
Margin
;
4292
gripRectangle.Y = Math.Max(0,displayRect.Top - Grip.
Margin
.Top);
4296
gripRectangle.X = ClientRectangle.Right - gripRectangle.Width - Grip.
Margin
.Horizontal;
4297
gripRectangle.X += Grip.
Margin
.Left;
4300
gripRectangle.X -= Grip.
Margin
.Right;
4306
gripRectangle.Y = displayRect.Top - (Grip.GripThickness + Grip.
Margin
.Bottom);
5511
bounds.Inflate(owner.DisplayedItems[i].
Margin
.Size);
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (3)
139
rect.Y += UpScrollButton.Height + UpScrollButton.
Margin
.Vertical;
140
rect.Height -= UpScrollButton.Height + UpScrollButton.
Margin
.Vertical + DownScrollButton.Height + DownScrollButton.
Margin
.Vertical;
winforms\Managed\System\WinForms\ToolStripItem.cs (4)
1521
if (
Margin
!= value) {
3652
if (state[stateUseAmbientMargin] &&
Margin
!= DefaultMargin) {
3705
/// <para>Determines if the <see cref='System.Windows.Forms.ToolStripItem.
Margin
'/> property needs to be persisted.</para>
3709
return (
Margin
!= DefaultMargin);
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
638
menuItem.Margin = this.
Margin
;
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (6)
63
return overflowButtonSize + toolStrip.OverflowButton.
Margin
.Size;
123
currentWidth += itemSize.Width + item.
Margin
.Horizontal;
174
currentHeight += itemSize.Height + item.
Margin
.Vertical;
320
Padding itemMargin = item.
Margin
;
454
Padding itemMargin = item.
Margin
;
599
Padding itemMargin = item.
Margin
;