91 references to Cells
System.Windows.Forms (91)
winforms\Managed\System\WinForms\ToolStripPanel.cs (2)
1232
foreach (ToolStripPanelCell cell in row.
Cells
) {
1258
Debug.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);
267
if (ToolStripPanelRow.
Cells
[ToolStripPanelRow.
Cells
.Count -1] == this) {
364
restoreOnVisibleChanged = (ToolStripPanelRow != null && ((IList)ToolStripPanelRow.
Cells
).Contains(this));
369
if (ToolStripPanelRow != null && ((IList)ToolStripPanelRow.
Cells
).Contains(this)) {
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (83)
352
for (int i = 0; i < this.
Cells
.Count; i++) {
353
IArrangedElement element =
Cells
[i] as IArrangedElement;
377
ToolStripPanelCell cell = RowManager.GetNextVisibleCell(this.
Cells
.Count -1, /*forward*/false);
399
ToolStripPanelCell cell = RowManager.GetNextVisibleCell(this.
Cells
.Count -1, /*forward*/false);
416
int[] margins = new int[
Cells
.Count];
417
for (int i = 0; i <
Cells
.Count; i++) {
418
ToolStripPanelCell c =
Cells
[i] as ToolStripPanelCell;
425
for (int i = 0; i <
Cells
.Count; i++) {
426
ToolStripPanelCell c =
Cells
[i] as ToolStripPanelCell;
441
for (int i =
Cells
.Count-1; i >= 0; i--) {
442
ToolStripPanelCell currentCell =
Cells
[i] as ToolStripPanelCell;
454
for (int j = i+1; j <
Cells
.Count; j++) {
456
cellOffsets = new int[
Cells
.Count];
470
for (int i = 0; i <
Cells
.Count; i++) {
471
ToolStripPanelCell c =
Cells
[i] as ToolStripPanelCell;
485
ToolStripPanelCell cell = RowManager.GetNextVisibleCell(this.
Cells
.Count -1, /*forward*/false);
498
int[] margins = new int[
Cells
.Count];
499
for (int i = 0; i <
Cells
.Count; i++) {
500
ToolStripPanelCell c =
Cells
[i] as ToolStripPanelCell;
507
for (int i = 0; i <
Cells
.Count; i++) {
508
ToolStripPanelCell c =
Cells
[i] as ToolStripPanelCell;
523
for (int i =
Cells
.Count-1; i >= 0; i--) {
524
ToolStripPanelCell currentCell =
Cells
[i] as ToolStripPanelCell;
536
for (int j = i+1; j <
Cells
.Count; j++) {
538
cellOffsets = new int[
Cells
.Count];
552
for (int i = 0; i <
Cells
.Count; i++) {
553
ToolStripPanelCell c =
Cells
[i] as ToolStripPanelCell;
619
return
Cells
;
823
ToolStripPanelCell cell = (ToolStripPanelCell)Row.
Cells
[index];
833
for (int i = index; i < Row.
Cells
.Count; i++) {
834
ToolStripPanelCell cell = Row.
Cells
[i] as ToolStripPanelCell;
842
ToolStripPanelCell cell = Row.
Cells
[i] as ToolStripPanelCell;
1009
ToolStripPanelCell lastCellOnRow = GetNextVisibleCell(Row.
Cells
.Count-1, /*forward*/false);
1031
spaceToFree -= MoveLeft(Row.
Cells
.Count -1, spaceToFree);
1077
ToolStripPanelCell cell = (ToolStripPanelCell)Row.
Cells
[i];
1102
if (index +1 < Row.
Cells
.Count) {
1141
for (int i = index+1; i < Row.
Cells
.Count; i++) {
1142
cell = (ToolStripPanelCell)Row.
Cells
[i];
1169
if (Row.
Cells
.Count > 0 && (spaceToFree > freedSpace)) {
1170
ToolStripPanelCell lastCell = GetNextVisibleCell(Row.
Cells
.Count -1, /*forward*/false);
1186
cell = Row.
Cells
[index] as ToolStripPanelCell;
1200
for (int i = index+1; i < Row.
Cells
.Count; i++) {
1201
cell = (ToolStripPanelCell)Row.
Cells
[i];
1216
if (Row.
Cells
.Count == 1) {
1243
ToolStripPanelCell cell = (ToolStripPanelCell)Row.
Cells
[index];
1257
((IList)Row.
Cells
).RemoveAt(index);
1281
for (index = 0; index < Row.
Cells
.Count; index++) {
1282
ToolStripPanelCell cell = Row.
Cells
[index] as ToolStripPanelCell;
1288
if (Row.
Cells
[index].Bounds.Contains(locationToDrag)) {
1295
if (Row.
Cells
[index].Bounds.X >= locationToDrag.X) {
1327
ToolStripPanelCell nextCell = (ToolStripPanelCell)Row.
Cells
[index+1];
1359
ToolStripPanelCell nextCell = GetNextVisibleCell(Row.
Cells
.Count-2, /*forward*/false);
1360
ToolStripPanelCell lastCell = GetNextVisibleCell(Row.
Cells
.Count-1, /*forward*/false);
1381
ToolStripPanelCell newCell = Row.
Cells
[index] as ToolStripPanelCell;
1402
if (Row.
Cells
.Count >0 || toolStripToDrag.IsInDesignMode) {
1404
ToolStripPanelCell cell = GetNextVisibleCell(Row.
Cells
.Count-1, /*forward*/false);
1406
cell = (ToolStripPanelCell)Row.
Cells
[Row.
Cells
.Count-1];
1520
ToolStripPanelCell lastCellOnRow = GetNextVisibleCell(Row.
Cells
.Count-1, /*forward*/false);
1542
spaceToFree -= MoveUp(Row.
Cells
.Count -1, spaceToFree);
1591
ToolStripPanelCell cell = (ToolStripPanelCell)Row.
Cells
[i];
1616
if (index +1 < Row.
Cells
.Count) {
1656
for (int i = index+1; i < Row.
Cells
.Count; i++) {
1657
cell = (ToolStripPanelCell)Row.
Cells
[i];
1685
if (Row.
Cells
.Count > 0 && (spaceToFree > freedSpace)) {
1686
ToolStripPanelCell lastCell = GetNextVisibleCell(Row.
Cells
.Count -1, /*forward*/false);
1698
cell = (ToolStripPanelCell)Row.
Cells
[index];
1708
for (int i = index+1; i < Row.
Cells
.Count; i++) {
1709
cell = (ToolStripPanelCell)Row.
Cells
[i];
1724
if (Row.
Cells
.Count == 1) {
1749
if (Row.
Cells
.Count > 0) {
1753
ToolStripPanelCell lastCell = GetNextVisibleCell(Row.
Cells
.Count -1, /*forward=*/false);
1758
ToolStripPanelCell lastCellOnRow = GetNextVisibleCell(Row.
Cells
.Count-1, /*forward*/false);
1780
MoveUp(Row.
Cells
.Count -1, spaceToFree);
1811
for (index = 0; index < Row.
Cells
.Count; index++) {
1812
ToolStripPanelCell cell = Row.
Cells
[index] as ToolStripPanelCell;
1891
ToolStripPanelCell nextCell = GetNextVisibleCell(Row.
Cells
.Count-2, /*forward*/false);
1892
ToolStripPanelCell lastCell = GetNextVisibleCell(Row.
Cells
.Count-1, /*forward*/false);
1915
ToolStripPanelCell newCell = Row.
Cells
[index] as ToolStripPanelCell;
1933
if (Row.
Cells
.Count >0) {
1934
ToolStripPanelCell cell = GetNextVisibleCell(Row.
Cells
.Count-1, /*forward*/false);
1957
ToolStripPanelCell cell = (ToolStripPanelCell)Row.
Cells
[index];
1971
((IList)Row.
Cells
).RemoveAt(index);