2 writes to Margin
System.Windows.Forms (2)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (2)
57
Margin
= DefaultMargin;
373
Margin
= DefaultMargin;
16 references to Margin
System.Windows.Forms (16)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
1019
Rectangle bounds = LayoutUtils.InflateRect(row.Bounds, row.
Margin
);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (1)
202
if (
Margin
!= value)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (7)
35
displayRect.Width = ToolStripPanel.ParentInternal.DisplayRectangle.Width - (ToolStripPanel.Margin.Horizontal + ToolStripPanel.Padding.Horizontal) - Row.
Margin
.Horizontal;
39
displayRect.Width = raftingDisplayRectangle.Width - Row.
Margin
.Horizontal;
67
dragBounds.Height += (nextRowBounds.Height >> 2) + Row.
Margin
.Bottom + ToolStripPanel.RowsInternal[index + 1].
Margin
.Top;
70
dragBounds.Width += Row.
Margin
.Horizontal + ToolStripPanel.Padding.Horizontal + 5;
71
dragBounds.X -= Row.
Margin
.Left + ToolStripPanel.Padding.Left + 4;
543
cellMargin.Left = Math.Max(0, locationToDrag.X - Row.
Margin
.Left);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (7)
36
displayRect.Height = ToolStripPanel.ParentInternal.DisplayRectangle.Height - (ToolStripPanel.Margin.Vertical + ToolStripPanel.Padding.Vertical) - Row.
Margin
.Vertical;
40
displayRect.Height = raftingDisplayRectangle.Height - Row.
Margin
.Vertical;
68
dragBounds.Width += (nextRowBounds.Width >> 2) + Row.
Margin
.Right + ToolStripPanel.RowsInternal[index + 1].
Margin
.Left;
71
dragBounds.Height += Row.
Margin
.Vertical + ToolStripPanel.Padding.Vertical + 5;
72
dragBounds.Y -= Row.
Margin
.Top + ToolStripPanel.Padding.Top + 4;
547
cellMargin.Top = Math.Max(0, locationToDrag.Y - Row.
Margin
.Top);