1 write to Row
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowManager.cs (1)
16Row = owner;
134 references to Row
System.Windows.Forms (134)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (61)
26Rectangle displayRect = ((IArrangedElement)Row).DisplayRectangle; 35displayRect.Width = ToolStripPanel.ParentInternal.DisplayRectangle.Width - (ToolStripPanel.Margin.Horizontal + ToolStripPanel.Padding.Horizontal) - Row.Margin.Horizontal; 39displayRect.Width = raftingDisplayRectangle.Width - Row.Margin.Horizontal; 51Rectangle dragBounds = Row.Bounds; 52int index = ToolStripPanel.RowsInternal.IndexOf(Row); 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; 86for (int i = 0; i < Row.ControlsInternal.Count; i++) 88totalSize += Row.GetMinimumSize((ToolStrip)Row.ControlsInternal[i]); 91totalSize += Row.GetMinimumSize(toolStripToDrag); 107ToolStripPanelCell? lastCellOnRow = GetNextVisibleCell(Row.Cells.Count - 1, forward: false); 133spaceToFree -= MoveLeft(Row.Cells.Count - 1, spaceToFree); 141if (Row.Locked) 148int index = Row.ControlsInternal.IndexOf(movingControl); 171Row.SuspendLayout(); 182ToolStripPanelCell? cell = (ToolStripPanelCell)Row.Cells[i]; 211if (index + 1 < Row.Cells.Count) 228Row.ResumeLayout(true); 237Row.SuspendLayout(); 240if (spaceToFree == 0 || index < 0 || index >= Row.ControlsInternal.Count) 249for (int i = index + 1; i < Row.Cells.Count; i++) 251cell = (ToolStripPanelCell)Row.Cells[i]; 281if (Row.Cells.Count > 0 && (spaceToFree > freedSpace)) 283ToolStripPanelCell? lastCell = GetNextVisibleCell(Row.Cells.Count - 1, forward: false); 299cell ??= Row.Cells[index] as ToolStripPanelCell; 314for (int i = index + 1; i < Row.Cells.Count; i++) 316cell = (ToolStripPanelCell)Row.Cells[i]; 326Row.ResumeLayout(true); 331if (Row.Cells.Count == 1) 344Row.ResumeLayout(true); 354Row.SuspendLayout(); 355int index = Row.ControlsInternal.IndexOf(toolStripToDrag); 358if (index < Row.ControlsInternal.Count - 1 /*not the last one in the row*/) 360ToolStripPanelCell cell = (ToolStripPanelCell)Row.Cells[index]; 377((IList)Row.Cells).RemoveAt(index); 380Row.ResumeLayout(true); 395if (!Row.ControlsInternal.Contains(toolStripToDrag)) 397Row.SuspendLayout(); 401if (Row.ControlsInternal.Count > 0) 404for (index = 0; index < Row.Cells.Count; index++) 406ToolStripPanelCell cell = (ToolStripPanelCell)Row.Cells[index]; 413if (Row.Cells[index].Bounds.Contains(locationToDrag)) 421if (Row.Cells[index].Bounds.X >= locationToDrag.X) 428if (index < Row.ControlsInternal.Count) 430Row.ControlsInternal.Insert(index, toolStripToDrag); 434Row.ControlsInternal.Add(toolStripToDrag); 454if (index < Row.ControlsInternal.Count - 1) 456ToolStripPanelCell nextCell = (ToolStripPanelCell)Row.Cells[index + 1]; 489ToolStripPanelCell? nextCell = GetNextVisibleCell(Row.Cells.Count - 2, forward: false); 490ToolStripPanelCell? lastCell = GetNextVisibleCell(Row.Cells.Count - 1, forward: false); 515ToolStripPanelCell newCell = (ToolStripPanelCell)Row.Cells[index]; 525Row.ControlsInternal.Add(toolStripToDrag); 529Debug.Assert(ctg.ToolStripPanelRow == Row, "we should now be in the new panel row."); 531if (Row.Cells.Count > 0 || toolStripToDrag.IsInDesignMode) 534ToolStripPanelCell? cell = GetNextVisibleCell(Row.Cells.Count - 1, forward: false); 537cell = (ToolStripPanelCell)Row.Cells[Row.Cells.Count - 1]; 543cellMargin.Left = Math.Max(0, locationToDrag.X - Row.Margin.Left); 551Row.ResumeLayout(true);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowManager.cs (13)
26foreach (Control control in Row.ControlsInternal) 49get { return Row.ToolStripPanel; } 58_flowLayoutSettings ??= new FlowLayoutSettings(Row); 72if (index >= 0 && index < Row.ControlsInternal.Count - 1) 74ToolStripPanelCell cell = (ToolStripPanelCell)Row.Cells[index]; 88for (int i = index; i < Row.Cells.Count; i++) 90ToolStripPanelCell cell = (ToolStripPanelCell)Row.Cells[i]; 91if ((cell.Visible || (Row.ToolStripPanel.Visible && cell.ControlInDesignMode)) && cell.ToolStripPanelRow == Row) 101ToolStripPanelCell cell = (ToolStripPanelCell)Row.Cells[i]; 102if ((cell.Visible || (Row.ToolStripPanel.Visible && cell.ControlInDesignMode)) && cell.ToolStripPanelRow == Row) 126for (int i = index + 1; i < Row.ControlsInternal.Count; i++)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (60)
27Rectangle displayRect = ((IArrangedElement)Row).DisplayRectangle; 36displayRect.Height = ToolStripPanel.ParentInternal.DisplayRectangle.Height - (ToolStripPanel.Margin.Vertical + ToolStripPanel.Padding.Vertical) - Row.Margin.Vertical; 40displayRect.Height = raftingDisplayRectangle.Height - Row.Margin.Vertical; 52Rectangle dragBounds = Row.Bounds; 53int index = ToolStripPanel.RowsInternal.IndexOf(Row); 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; 88for (int i = 0; i < Row.ControlsInternal.Count; i++) 90totalSize += Row.GetMinimumSize((ToolStrip)Row.ControlsInternal[i]); 93totalSize += Row.GetMinimumSize(toolStripToDrag); 109ToolStripPanelCell? lastCellOnRow = GetNextVisibleCell(Row.Cells.Count - 1, forward: false); 135spaceToFree -= MoveUp(Row.Cells.Count - 1, spaceToFree); 143if (Row.Locked) 150int index = Row.ControlsInternal.IndexOf(movingControl); 173Row.SuspendLayout(); 184ToolStripPanelCell? cell = (ToolStripPanelCell)Row.Cells[i]; 213if (index + 1 < Row.Cells.Count) 230Row.ResumeLayout(true); 239Row.SuspendLayout(); 242if (spaceToFree == 0 || index < 0 || index >= Row.ControlsInternal.Count) 251for (int i = index + 1; i < Row.Cells.Count; i++) 253cell = (ToolStripPanelCell)Row.Cells[i]; 283if (Row.Cells.Count > 0 && (spaceToFree > freedSpace)) 285ToolStripPanelCell? lastCell = GetNextVisibleCell(Row.Cells.Count - 1, forward: false); 300cell = (ToolStripPanelCell)Row.Cells[index]; 309for (int i = index + 1; i < Row.Cells.Count; i++) 311cell = (ToolStripPanelCell)Row.Cells[i]; 321Row.ResumeLayout(true); 326if (Row.Cells.Count == 1) 339Row.ResumeLayout(true); 351if (Row.Cells.Count > 0) 355ToolStripPanelCell? lastCell = GetNextVisibleCell(Row.Cells.Count - 1, forward: false); 361ToolStripPanelCell? lastCellOnRow = GetNextVisibleCell(Row.Cells.Count - 1, forward: false); 384MoveUp(Row.Cells.Count - 1, spaceToFree); 402if (!Row.ControlsInternal.Contains(toolStripToDrag)) 404Row.SuspendLayout(); 407if (Row.ControlsInternal.Count > 0) 410for (index = 0; index < Row.Cells.Count; index++) 412ToolStripPanelCell cell = (ToolStripPanelCell)Row.Cells[index]; 434if (index < Row.ControlsInternal.Count) 436Row.ControlsInternal.Insert(index, toolStripToDrag); 440Row.ControlsInternal.Add(toolStripToDrag); 461if (index < Row.ControlsInternal.Count - 1) 499ToolStripPanelCell? nextCell = GetNextVisibleCell(Row.Cells.Count - 2, forward: false); 500ToolStripPanelCell? lastCell = GetNextVisibleCell(Row.Cells.Count - 1, forward: false); 525ToolStripPanelCell newCell = (ToolStripPanelCell)Row.Cells[index]; 535Row.ControlsInternal.Add(toolStripToDrag); 539Debug.Assert(ctg.ToolStripPanelRow == Row, "we should now be in the new panel row."); 541if (Row.Cells.Count > 0) 543ToolStripPanelCell? cell = GetNextVisibleCell(Row.Cells.Count - 1, forward: false); 547cellMargin.Top = Math.Max(0, locationToDrag.Y - Row.Margin.Top); 555Row.ResumeLayout(true); 564Row.SuspendLayout(); 565int index = Row.ControlsInternal.IndexOf(toolStripToDrag); 568if (index < Row.ControlsInternal.Count - 1 /*not the last one in the row*/) 570ToolStripPanelCell cell = (ToolStripPanelCell)Row.Cells[index]; 587((IList)Row.Cells).RemoveAt(index); 590Row.ResumeLayout(true);