2 writes to Margin
System.Windows.Forms (2)
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (2)
79this.Margin = DefaultMargin; 367this.Margin = DefaultMargin;
16 references to Margin
System.Windows.Forms (16)
winforms\Managed\System\WinForms\ToolStripPanel.cs (1)
1204Rectangle bounds = LayoutUtils.InflateRect(row.Bounds, row.Margin);
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (15)
212set { if (Margin != value ) CommonProperties.SetMargin(this, value); } 945displayRect.Width = ToolStripPanel.ParentInternal.DisplayRectangle.Width - (ToolStripPanel.Margin.Horizontal + ToolStripPanel.Padding.Horizontal) - Row.Margin.Horizontal; 948displayRect.Width = raftingDisplayRectangle.Width - Row.Margin.Horizontal; 973dragBounds.Height += (nextRowBounds.Height >> 2) + Row.Margin.Bottom + ToolStripPanel.RowsInternal[index + 1].Margin.Top; 976dragBounds.Width += Row.Margin.Horizontal + ToolStripPanel.Padding.Horizontal +5; 977dragBounds.X -= Row.Margin.Left + ToolStripPanel.Padding.Left +4; 1411cellMargin.Left = Math.Max(0,locationToDrag.X-Row.Margin.Left); 1455displayRect.Height = ToolStripPanel.ParentInternal.DisplayRectangle.Height - (ToolStripPanel.Margin.Vertical + ToolStripPanel.Padding.Vertical) - Row.Margin.Vertical; 1458displayRect.Height = raftingDisplayRectangle.Height - Row.Margin.Vertical; 1482dragBounds.Width += (nextRowBounds.Width >> 2) + Row.Margin.Right + ToolStripPanel.RowsInternal[index + 1].Margin.Left; 1485dragBounds.Height += Row.Margin.Vertical + ToolStripPanel.Padding.Vertical +5; 1486dragBounds.Y -= Row.Margin.Top+ ToolStripPanel.Padding.Top +4; 1937cellMargin.Top = Math.Max(0,locationToDrag.Y-Row.Margin.Top);