28 references to ToolStripPanel
System.Windows.Forms (28)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (14)
28
if (
ToolStripPanel
is not null)
30
Rectangle raftingDisplayRectangle =
ToolStripPanel
.DisplayRectangle;
32
if ((!
ToolStripPanel
.Visible || LayoutUtils.IsZeroWidthOrHeight(raftingDisplayRectangle)) && (
ToolStripPanel
.ParentInternal is not null))
35
displayRect.Width =
ToolStripPanel
.ParentInternal.DisplayRectangle.Width - (
ToolStripPanel
.Margin.Horizontal +
ToolStripPanel
.Padding.Horizontal) - Row.Margin.Horizontal;
52
int index =
ToolStripPanel
.RowsInternal.IndexOf(Row);
56
Rectangle previousRowBounds =
ToolStripPanel
.RowsInternal[index - 1].Bounds;
63
if (index <
ToolStripPanel
.RowsInternal.Count - 1)
65
Rectangle nextRowBounds =
ToolStripPanel
.RowsInternal[index + 1].Bounds;
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;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (14)
29
if (
ToolStripPanel
is not null)
31
Rectangle raftingDisplayRectangle =
ToolStripPanel
.DisplayRectangle;
33
if ((!
ToolStripPanel
.Visible || LayoutUtils.IsZeroWidthOrHeight(raftingDisplayRectangle)) && (
ToolStripPanel
.ParentInternal is not null))
36
displayRect.Height =
ToolStripPanel
.ParentInternal.DisplayRectangle.Height - (
ToolStripPanel
.Margin.Vertical +
ToolStripPanel
.Padding.Vertical) - Row.Margin.Vertical;
53
int index =
ToolStripPanel
.RowsInternal.IndexOf(Row);
57
Rectangle previousRowBounds =
ToolStripPanel
.RowsInternal[index - 1].Bounds;
64
if (index <
ToolStripPanel
.RowsInternal.Count - 1)
66
Rectangle nextRowBounds =
ToolStripPanel
.RowsInternal[index + 1].Bounds;
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;