91 references to Cells
System.Windows.Forms (91)
winforms\Managed\System\WinForms\ToolStripPanel.cs (2)
1232foreach (ToolStripPanelCell cell in row.Cells) { 1258Debug.Write(String.Format(CultureInfo.CurrentCulture, "[{0} {1}] ", RowsInternal[i].ControlsInternal[j].Name, ((ToolStripPanelCell)RowsInternal[i].Cells[j]).Margin));
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (6)
99((IList)parent.Cells).Remove(this); 215((IList)parent.Cells).Remove(this); 267if (ToolStripPanelRow.Cells[ToolStripPanelRow.Cells.Count -1] == this) { 364restoreOnVisibleChanged = (ToolStripPanelRow != null && ((IList)ToolStripPanelRow.Cells).Contains(this)); 369if (ToolStripPanelRow != null && ((IList)ToolStripPanelRow.Cells).Contains(this)) {
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (83)
352for (int i = 0; i < this.Cells.Count; i++) { 353IArrangedElement element = Cells[i] as IArrangedElement; 377ToolStripPanelCell cell = RowManager.GetNextVisibleCell(this.Cells.Count -1, /*forward*/false); 399ToolStripPanelCell cell = RowManager.GetNextVisibleCell(this.Cells.Count -1, /*forward*/false); 416int[] margins = new int[Cells.Count]; 417for (int i = 0; i < Cells.Count; i++) { 418ToolStripPanelCell c = Cells[i] as ToolStripPanelCell; 425for (int i = 0; i < Cells.Count; i++) { 426ToolStripPanelCell c = Cells[i] as ToolStripPanelCell; 441for (int i = Cells.Count-1; i >= 0; i--) { 442ToolStripPanelCell currentCell =Cells[i] as ToolStripPanelCell; 454for (int j = i+1; j < Cells.Count; j++) { 456cellOffsets = new int[Cells.Count]; 470for (int i = 0; i < Cells.Count; i++) { 471ToolStripPanelCell c = Cells[i] as ToolStripPanelCell; 485ToolStripPanelCell cell = RowManager.GetNextVisibleCell(this.Cells.Count -1, /*forward*/false); 498int[] margins = new int[Cells.Count]; 499for (int i = 0; i < Cells.Count; i++) { 500ToolStripPanelCell c = Cells[i] as ToolStripPanelCell; 507for (int i = 0; i < Cells.Count; i++) { 508ToolStripPanelCell c = Cells[i] as ToolStripPanelCell; 523for (int i = Cells.Count-1; i >= 0; i--) { 524ToolStripPanelCell currentCell =Cells[i] as ToolStripPanelCell; 536for (int j = i+1; j < Cells.Count; j++) { 538cellOffsets = new int[Cells.Count]; 552for (int i = 0; i < Cells.Count; i++) { 553ToolStripPanelCell c = Cells[i] as ToolStripPanelCell; 619return Cells; 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; 1009ToolStripPanelCell lastCellOnRow = GetNextVisibleCell(Row.Cells.Count-1, /*forward*/false); 1031spaceToFree -= MoveLeft(Row.Cells.Count -1, spaceToFree); 1077ToolStripPanelCell cell = (ToolStripPanelCell)Row.Cells[i]; 1102if (index +1 < Row.Cells.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]; 1216if (Row.Cells.Count == 1) { 1243ToolStripPanelCell cell = (ToolStripPanelCell)Row.Cells[index]; 1257((IList)Row.Cells).RemoveAt(index); 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) { 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; 1402if (Row.Cells.Count >0 || toolStripToDrag.IsInDesignMode) { 1404ToolStripPanelCell cell = GetNextVisibleCell(Row.Cells.Count-1, /*forward*/false); 1406cell = (ToolStripPanelCell)Row.Cells[Row.Cells.Count-1]; 1520ToolStripPanelCell lastCellOnRow = GetNextVisibleCell(Row.Cells.Count-1, /*forward*/false); 1542spaceToFree -= MoveUp(Row.Cells.Count -1, spaceToFree); 1591ToolStripPanelCell cell = (ToolStripPanelCell)Row.Cells[i]; 1616if (index +1 < Row.Cells.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]; 1724if (Row.Cells.Count == 1) { 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); 1811for (index = 0; index < Row.Cells.Count; index++) { 1812ToolStripPanelCell cell = Row.Cells[index] as ToolStripPanelCell; 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; 1933if (Row.Cells.Count >0) { 1934ToolStripPanelCell cell = GetNextVisibleCell(Row.Cells.Count-1, /*forward*/false); 1957ToolStripPanelCell cell = (ToolStripPanelCell)Row.Cells[index]; 1971((IList)Row.Cells).RemoveAt(index);