28 references to ToolStripPanel
System.Windows.Forms (28)
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (28)
939
if (
ToolStripPanel
!= null) {
940
Rectangle raftingDisplayRectangle =
ToolStripPanel
.DisplayRectangle;
942
if ((!
ToolStripPanel
.Visible || LayoutUtils.IsZeroWidthOrHeight(raftingDisplayRectangle)) && (
ToolStripPanel
.ParentInternal != null)){
945
displayRect.Width =
ToolStripPanel
.ParentInternal.DisplayRectangle.Width - (
ToolStripPanel
.Margin.Horizontal +
ToolStripPanel
.Padding.Horizontal) - Row.Margin.Horizontal;
960
int index =
ToolStripPanel
.RowsInternal.IndexOf(Row);
963
Rectangle previousRowBounds =
ToolStripPanel
.RowsInternal[index - 1].Bounds;
970
if (index <
ToolStripPanel
.RowsInternal.Count - 1) {
971
Rectangle nextRowBounds =
ToolStripPanel
.RowsInternal[index + 1].Bounds;
973
dragBounds.Height += (nextRowBounds.Height >> 2) + Row.Margin.Bottom +
ToolStripPanel
.RowsInternal[index + 1].Margin.Top;
976
dragBounds.Width += Row.Margin.Horizontal +
ToolStripPanel
.Padding.Horizontal +5;
977
dragBounds.X -= Row.Margin.Left +
ToolStripPanel
.Padding.Left +4;
1450
if (
ToolStripPanel
!= null) {
1451
Rectangle raftingDisplayRectangle =
ToolStripPanel
.DisplayRectangle;
1453
if ((!
ToolStripPanel
.Visible || LayoutUtils.IsZeroWidthOrHeight(raftingDisplayRectangle)) && (
ToolStripPanel
.ParentInternal != null)){
1455
displayRect.Height =
ToolStripPanel
.ParentInternal.DisplayRectangle.Height - (
ToolStripPanel
.Margin.Vertical +
ToolStripPanel
.Padding.Vertical) - Row.Margin.Vertical;
1468
int index =
ToolStripPanel
.RowsInternal.IndexOf(Row);
1472
Rectangle previousRowBounds =
ToolStripPanel
.RowsInternal[index - 1].Bounds;
1479
if (index <
ToolStripPanel
.RowsInternal.Count - 1) {
1480
Rectangle nextRowBounds =
ToolStripPanel
.RowsInternal[index + 1].Bounds;
1482
dragBounds.Width += (nextRowBounds.Width >> 2) + Row.Margin.Right +
ToolStripPanel
.RowsInternal[index + 1].Margin.Left;
1485
dragBounds.Height += Row.Margin.Vertical +
ToolStripPanel
.Padding.Vertical +5;
1486
dragBounds.Y -= Row.Margin.Top+
ToolStripPanel
.Padding.Top +4;