128 references to Row
System.Windows.Forms (128)
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (128)
778foreach (Control c in Row.ControlsInternal) { 822if (index >= 0 && index < Row.ControlsInternal.Count - 1) { 823ToolStripPanelCell cell = (ToolStripPanelCell)Row.Cells[index]; 833for (int i = index; i < Row.Cells.Count; i++) { 834ToolStripPanelCell cell = Row.Cells[i] as ToolStripPanelCell; 842ToolStripPanelCell cell = Row.Cells[i] as ToolStripPanelCell; 865for (int i = index + 1; i < Row.ControlsInternal.Count; i++) { 937Rectangle displayRect = ((IArrangedElement)Row).DisplayRectangle; 945displayRect.Width = ToolStripPanel.ParentInternal.DisplayRectangle.Width - (ToolStripPanel.Margin.Horizontal + ToolStripPanel.Padding.Horizontal) - Row.Margin.Horizontal; 948displayRect.Width = raftingDisplayRectangle.Width - Row.Margin.Horizontal; 959Rectangle dragBounds = Row.Bounds; 960int index = ToolStripPanel.RowsInternal.IndexOf(Row); 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; 991for (int i = 0; i < Row.ControlsInternal.Count; i++ ){ 992totalSize += Row.GetMinimumSize(Row.ControlsInternal[i] as ToolStrip); 995totalSize += Row.GetMinimumSize(toolStripToDrag as ToolStrip); 1009ToolStripPanelCell lastCellOnRow = GetNextVisibleCell(Row.Cells.Count-1, /*forward*/false); 1031spaceToFree -= MoveLeft(Row.Cells.Count -1, spaceToFree); 1041if (Row.Locked) { 1046int index = Row.ControlsInternal.IndexOf(movingControl); 1067Row.SuspendLayout(); 1077ToolStripPanelCell cell = (ToolStripPanelCell)Row.Cells[i]; 1102if (index +1 < Row.Cells.Count) { 1117Row.ResumeLayout(true); 1128Row.SuspendLayout(); 1131if (spaceToFree == 0 || index < 0 || index >= Row.ControlsInternal.Count) { 1141for (int i = index+1; i < Row.Cells.Count; i++) { 1142cell = (ToolStripPanelCell)Row.Cells[i]; 1169if (Row.Cells.Count > 0 && (spaceToFree > freedSpace)) { 1170ToolStripPanelCell lastCell = GetNextVisibleCell(Row.Cells.Count -1, /*forward*/false); 1186cell = Row.Cells[index] as ToolStripPanelCell; 1200for (int i = index+1; i < Row.Cells.Count; i++) { 1201cell = (ToolStripPanelCell)Row.Cells[i]; 1210Row.ResumeLayout(true); 1216if (Row.Cells.Count == 1) { 1227Row.ResumeLayout(true); 1239Row.SuspendLayout(); 1240int index = Row.ControlsInternal.IndexOf(toolStripToDrag); 1242if (index < Row.ControlsInternal.Count -1 /*not the last one in the row*/) { 1243ToolStripPanelCell cell = (ToolStripPanelCell)Row.Cells[index]; 1257((IList)Row.Cells).RemoveAt(index); 1259Row.ResumeLayout(true); 1274if (!Row.ControlsInternal.Contains(toolStripToDrag)) { 1275Row.SuspendLayout(); 1278if (Row.ControlsInternal.Count > 0) { 1281for (index = 0; index < Row.Cells.Count; index++) { 1282ToolStripPanelCell cell = Row.Cells[index] as ToolStripPanelCell; 1288if (Row.Cells[index].Bounds.Contains(locationToDrag)) { 1295if (Row.Cells[index].Bounds.X >= locationToDrag.X) { 1301Control controlToPushAside = Row.ControlsInternal[index]; 1303if (index < Row.ControlsInternal.Count) { 1304Row.ControlsInternal.Insert(index, toolStripToDrag); 1307Row.ControlsInternal.Add(toolStripToDrag); 1326if (index < Row.ControlsInternal.Count -1) { 1327ToolStripPanelCell nextCell = (ToolStripPanelCell)Row.Cells[index+1]; 1359ToolStripPanelCell nextCell = GetNextVisibleCell(Row.Cells.Count-2, /*forward*/false); 1360ToolStripPanelCell lastCell = GetNextVisibleCell(Row.Cells.Count-1, /*forward*/false); 1381ToolStripPanelCell newCell = Row.Cells[index] as ToolStripPanelCell; 1395Row.ControlsInternal.Add(toolStripToDrag); 1402if (Row.Cells.Count >0 || toolStripToDrag.IsInDesignMode) { 1404ToolStripPanelCell cell = GetNextVisibleCell(Row.Cells.Count-1, /*forward*/false); 1406cell = (ToolStripPanelCell)Row.Cells[Row.Cells.Count-1]; 1411cellMargin.Left = Math.Max(0,locationToDrag.X-Row.Margin.Left); 1421Row.ResumeLayout(true); 1448Rectangle displayRect = ((IArrangedElement)Row).DisplayRectangle; 1455displayRect.Height = ToolStripPanel.ParentInternal.DisplayRectangle.Height - (ToolStripPanel.Margin.Vertical + ToolStripPanel.Padding.Vertical) - Row.Margin.Vertical; 1458displayRect.Height = raftingDisplayRectangle.Height - Row.Margin.Vertical; 1467Rectangle dragBounds = Row.Bounds; 1468int index = ToolStripPanel.RowsInternal.IndexOf(Row); 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; 1502for (int i = 0; i < Row.ControlsInternal.Count; i++ ){ 1503totalSize += Row.GetMinimumSize(Row.ControlsInternal[i] as ToolStrip); 1506totalSize += Row.GetMinimumSize(toolStripToDrag); 1520ToolStripPanelCell lastCellOnRow = GetNextVisibleCell(Row.Cells.Count-1, /*forward*/false); 1542spaceToFree -= MoveUp(Row.Cells.Count -1, spaceToFree); 1555if (Row.Locked) { 1559int index = Row.ControlsInternal.IndexOf(movingControl); 1581Row.SuspendLayout(); 1591ToolStripPanelCell cell = (ToolStripPanelCell)Row.Cells[i]; 1616if (index +1 < Row.Cells.Count) { 1631Row.ResumeLayout(true); 1643Row.SuspendLayout(); 1646if (spaceToFree == 0 || index < 0 || index >= Row.ControlsInternal.Count) { 1656for (int i = index+1; i < Row.Cells.Count; i++) { 1657cell = (ToolStripPanelCell)Row.Cells[i]; 1685if (Row.Cells.Count > 0 && (spaceToFree > freedSpace)) { 1686ToolStripPanelCell lastCell = GetNextVisibleCell(Row.Cells.Count -1, /*forward*/false); 1698cell = (ToolStripPanelCell)Row.Cells[index]; 1708for (int i = index+1; i < Row.Cells.Count; i++) { 1709cell = (ToolStripPanelCell)Row.Cells[i]; 1718Row.ResumeLayout(true); 1724if (Row.Cells.Count == 1) { 1735Row.ResumeLayout(true); 1749if (Row.Cells.Count > 0) { 1753ToolStripPanelCell lastCell = GetNextVisibleCell(Row.Cells.Count -1, /*forward=*/false); 1758ToolStripPanelCell lastCellOnRow = GetNextVisibleCell(Row.Cells.Count-1, /*forward*/false); 1780MoveUp(Row.Cells.Count -1, spaceToFree); 1804if (!Row.ControlsInternal.Contains(toolStripToDrag)) { 1805Row.SuspendLayout(); 1807if (Row.ControlsInternal.Count > 0) { 1811for (index = 0; index < Row.Cells.Count; index++) { 1812ToolStripPanelCell cell = Row.Cells[index] as ToolStripPanelCell; 1830Control controlToPushAside = Row.ControlsInternal[index]; 1832if (index < Row.ControlsInternal.Count) { 1833Row.ControlsInternal.Insert(index, toolStripToDrag); 1836Row.ControlsInternal.Add(toolStripToDrag); 1855if (index < Row.ControlsInternal.Count -1) { 1891ToolStripPanelCell nextCell = GetNextVisibleCell(Row.Cells.Count-2, /*forward*/false); 1892ToolStripPanelCell lastCell = GetNextVisibleCell(Row.Cells.Count-1, /*forward*/false); 1915ToolStripPanelCell newCell = Row.Cells[index] as ToolStripPanelCell; 1926Row.ControlsInternal.Add(toolStripToDrag); 1933if (Row.Cells.Count >0) { 1934ToolStripPanelCell cell = GetNextVisibleCell(Row.Cells.Count-1, /*forward*/false); 1937cellMargin.Top = Math.Max(0,locationToDrag.Y-Row.Margin.Top); 1944Row.ResumeLayout(true); 1952Row.SuspendLayout(); 1953int index = Row.ControlsInternal.IndexOf(toolStripToDrag); 1955if (index < Row.ControlsInternal.Count -1 /*not the last one in the row*/) { 1957ToolStripPanelCell cell = (ToolStripPanelCell)Row.Cells[index]; 1971((IList)Row.Cells).RemoveAt(index); 1973Row.ResumeLayout(true);