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