28 references to ToolStripPanel
System.Windows.Forms (28)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (14)
28if (ToolStripPanel is not null) 30Rectangle raftingDisplayRectangle = ToolStripPanel.DisplayRectangle; 32if ((!ToolStripPanel.Visible || LayoutUtils.IsZeroWidthOrHeight(raftingDisplayRectangle)) && (ToolStripPanel.ParentInternal is not null)) 35displayRect.Width = ToolStripPanel.ParentInternal.DisplayRectangle.Width - (ToolStripPanel.Margin.Horizontal + ToolStripPanel.Padding.Horizontal) - Row.Margin.Horizontal; 52int index = ToolStripPanel.RowsInternal.IndexOf(Row); 56Rectangle previousRowBounds = ToolStripPanel.RowsInternal[index - 1].Bounds; 63if (index < ToolStripPanel.RowsInternal.Count - 1) 65Rectangle nextRowBounds = ToolStripPanel.RowsInternal[index + 1].Bounds; 67dragBounds.Height += (nextRowBounds.Height >> 2) + Row.Margin.Bottom + ToolStripPanel.RowsInternal[index + 1].Margin.Top; 70dragBounds.Width += Row.Margin.Horizontal + ToolStripPanel.Padding.Horizontal + 5; 71dragBounds.X -= Row.Margin.Left + ToolStripPanel.Padding.Left + 4;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (14)
29if (ToolStripPanel is not null) 31Rectangle raftingDisplayRectangle = ToolStripPanel.DisplayRectangle; 33if ((!ToolStripPanel.Visible || LayoutUtils.IsZeroWidthOrHeight(raftingDisplayRectangle)) && (ToolStripPanel.ParentInternal is not null)) 36displayRect.Height = ToolStripPanel.ParentInternal.DisplayRectangle.Height - (ToolStripPanel.Margin.Vertical + ToolStripPanel.Padding.Vertical) - Row.Margin.Vertical; 53int index = ToolStripPanel.RowsInternal.IndexOf(Row); 57Rectangle previousRowBounds = ToolStripPanel.RowsInternal[index - 1].Bounds; 64if (index < ToolStripPanel.RowsInternal.Count - 1) 66Rectangle nextRowBounds = ToolStripPanel.RowsInternal[index + 1].Bounds; 68dragBounds.Width += (nextRowBounds.Width >> 2) + Row.Margin.Right + ToolStripPanel.RowsInternal[index + 1].Margin.Left; 71dragBounds.Height += Row.Margin.Vertical + ToolStripPanel.Padding.Vertical + 5; 72dragBounds.Y -= Row.Margin.Top + ToolStripPanel.Padding.Top + 4;