90 references to Cells
System.Windows.Forms (90)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
1050foreach (ToolStripPanelCell cell in row.Cells)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (6)
102((IList)_parent.Cells).Remove(this); 239((IList)_parent.Cells).Remove(this); 307if (ToolStripPanelRow.Cells[ToolStripPanelRow.Cells.Count - 1] == this) 398_restoreOnVisibleChanged = (ToolStripPanelRow is not null && ((IList)ToolStripPanelRow.Cells).Contains(this)); 405if (ToolStripPanelRow is not null && ((IList)ToolStripPanelRow.Cells).Contains(this))
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (28)
353for (int i = 0; i < Cells.Count; i++) 355IArrangedElement element = Cells[i]; 385ToolStripPanelCell? cell = RowManager.GetNextVisibleCell(Cells.Count - 1, forward: false); 408ToolStripPanelCell? cell = RowManager.GetNextVisibleCell(Cells.Count - 1, forward: false); 429int[] margins = new int[Cells.Count]; 430for (int i = 0; i < Cells.Count; i++) 432ToolStripPanelCell c = (ToolStripPanelCell)Cells[i]; 439for (int i = 0; i < Cells.Count; i++) 441ToolStripPanelCell c = (ToolStripPanelCell)Cells[i]; 455for (int i = Cells.Count - 1; i >= 0; i--) 457ToolStripPanelCell currentCell = (ToolStripPanelCell)Cells[i]; 471for (int j = i + 1; j < Cells.Count; j++) 473cellOffsets ??= new int[Cells.Count]; 491for (int i = 0; i < Cells.Count; i++) 493ToolStripPanelCell c = (ToolStripPanelCell)Cells[i]; 505ToolStripPanelCell? cell = RowManager.GetNextVisibleCell(Cells.Count - 1, forward: false); 526int[] margins = new int[Cells.Count]; 527for (int i = 0; i < Cells.Count; i++) 529ToolStripPanelCell c = (ToolStripPanelCell)Cells[i]; 536for (int i = 0; i < Cells.Count; i++) 538ToolStripPanelCell c = (ToolStripPanelCell)Cells[i]; 552for (int i = Cells.Count - 1; i >= 0; i--) 554ToolStripPanelCell currentCell = (ToolStripPanelCell)Cells[i]; 568for (int j = i + 1; j < Cells.Count; j++) 570cellOffsets ??= new int[Cells.Count]; 588for (int i = 0; i < Cells.Count; i++) 590ToolStripPanelCell c = (ToolStripPanelCell)Cells[i]; 629return Cells;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (26)
107ToolStripPanelCell? lastCellOnRow = GetNextVisibleCell(Row.Cells.Count - 1, forward: false); 133spaceToFree -= MoveLeft(Row.Cells.Count - 1, spaceToFree); 182ToolStripPanelCell? cell = (ToolStripPanelCell)Row.Cells[i]; 211if (index + 1 < Row.Cells.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]; 331if (Row.Cells.Count == 1) 360ToolStripPanelCell cell = (ToolStripPanelCell)Row.Cells[index]; 377((IList)Row.Cells).RemoveAt(index); 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) 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]; 531if (Row.Cells.Count > 0 || toolStripToDrag.IsInDesignMode) 534ToolStripPanelCell? cell = GetNextVisibleCell(Row.Cells.Count - 1, forward: false); 537cell = (ToolStripPanelCell)Row.Cells[Row.Cells.Count - 1];
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowManager.cs (4)
74ToolStripPanelCell cell = (ToolStripPanelCell)Row.Cells[index]; 88for (int i = index; i < Row.Cells.Count; i++) 90ToolStripPanelCell cell = (ToolStripPanelCell)Row.Cells[i]; 101ToolStripPanelCell cell = (ToolStripPanelCell)Row.Cells[i];
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (25)
109ToolStripPanelCell? lastCellOnRow = GetNextVisibleCell(Row.Cells.Count - 1, forward: false); 135spaceToFree -= MoveUp(Row.Cells.Count - 1, spaceToFree); 184ToolStripPanelCell? cell = (ToolStripPanelCell)Row.Cells[i]; 213if (index + 1 < Row.Cells.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]; 326if (Row.Cells.Count == 1) 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); 410for (index = 0; index < Row.Cells.Count; index++) 412ToolStripPanelCell cell = (ToolStripPanelCell)Row.Cells[index]; 499ToolStripPanelCell? nextCell = GetNextVisibleCell(Row.Cells.Count - 2, forward: false); 500ToolStripPanelCell? lastCell = GetNextVisibleCell(Row.Cells.Count - 1, forward: false); 525ToolStripPanelCell newCell = (ToolStripPanelCell)Row.Cells[index]; 541if (Row.Cells.Count > 0) 543ToolStripPanelCell? cell = GetNextVisibleCell(Row.Cells.Count - 1, forward: false); 570ToolStripPanelCell cell = (ToolStripPanelCell)Row.Cells[index]; 587((IList)Row.Cells).RemoveAt(index);