Implemented interface member:
property
Count
System.Collections.ICollection.Count
331 references to Count
System.Windows.Forms (329)
winforms\Managed\System\WinForms\ContainerControl.cs (4)
1039
for(int i = 0; i < controlsCollection.
Count
; i++) {
1058
for(int i = 0; i < controlsCollection.
Count
; i++) {
1243
if (Controls.
Count
== 0) {
1861
int count = children.
Count
;
winforms\Managed\System\WinForms\ContextMenuStrip.cs (1)
74
for (int i = 0; i < Items.
Count
; i++) {
winforms\Managed\System\WinForms\Control.cs (46)
2892
return controls != null && controls.
Count
> 0;
4305
for(int i = 0; i < controlsCollection.
Count
; i++) {
5891
Control[] controlSnapshot = new Control[controlsCollection.
Count
];
6045
for(int i = 0; i < controlsCollection.
Count
; i++) {
6087
for(int i = 0; i < controlsCollection.
Count
; i++) {
6842
for (int c = 0; c < ctlControls.
Count
; c++) {
6853
for (int c = ctlControls.
Count
- 1; c >= 0; c--) {
6876
if (ctlControls != null && ctlControls.
Count
> 0 && (ctl == this || !IsFocusManagingContainerControl(ctl))) {
6898
parentControlCount = parentControls.
Count
;
6961
parentControlCount = parentControls.
Count
;
7021
while (ctlControls != null && ctlControls.
Count
> 0 && (ctl == this || !IsFocusManagingContainerControl(ctl))) {
7989
for(int i = 0; i < controlsCollection.
Count
; i++) {
8018
for(int i = 0; i < controlsCollection.
Count
; i++) {
8064
for(int i = 0; i < controlsCollection.
Count
; i++) {
8137
for(int i = 0; i < controlsCollection.
Count
; i++) {
8190
for(int i = 0; i < controlsCollection.
Count
; i++) {
8240
for(int i = 0; i < controlsCollection.
Count
; i++) {
8272
for(int i = 0; i < controlsCollection.
Count
; i++) {
8305
for(int i = 0; i < controlsCollection.
Count
; i++) {
8482
for(int i = 0; i < controlsCollection.
Count
; i++) {
8613
for(int i = 0; i < controlsCollection.
Count
; i++) {
8633
for(int i = 0; i < controlsCollection.
Count
; i++) {
9073
for(int i = 0; i < controls.
Count
; i++) {
9539
for(int i = 0; i < controlsCollection.
Count
; i++) {
10390
int count = Controls.
Count
;
10411
if(Controls.
Count
== 0) {
10988
if (controlsCollection != null && controlsCollection.
Count
> 0) {
10989
controlSnapshot = new Control[controlsCollection.
Count
];
10990
for (int i = 0; i < controlsCollection.
Count
; i++) {
11222
for (int i = 0; i < controlsCollection.
Count
; i++) {
11320
for (int i = 0; i < controlsCollection.
Count
; i++) {
11390
for (int i = 0; i < controlsCollection.
Count
; i++) {
11603
for (int i = 0; i < controlsCollection.
Count
; i++) {
14778
for (int c = 0; c < (
Count
- 1); c++) {
14927
for (int i = 0; i < controlsToLookIn.
Count
; i++) {
14940
for (int i = 0; i < controlsToLookIn.
Count
; i++) {
14944
if ((controlsToLookIn[i].Controls != null) && controlsToLookIn[i].Controls.
Count
> 0){
14990
for (int i = 0; i < this.
Count
; i ++) {
15008
return ((index >= 0) && (index < this.
Count
));
15090
if (index < 0 || index >=
Count
) {
15138
while (
Count
!= 0)
15139
RemoveAt(
Count
- 1);
15193
if (newIndex >=
Count
|| newIndex == -1) {
15194
newIndex =
Count
- 1;
15226
this.originalCount = controls.
Count
;
15243
if (current < controls.
Count
- 1 && current < originalCount - 1) {
winforms\Managed\System\WinForms\DataGrid.cs (1)
1618
for (int i = 0; i < this.Controls.
Count
; i++) {
winforms\Managed\System\WinForms\DataGridViewCell.cs (1)
1366
Debug.Assert(dgv.EditingPanel.Controls.
Count
== 0);
winforms\Managed\System\WinForms\DataGridViewControlCollection.cs (1)
60
for (int i = 0; i < this.
Count
; i++)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (1)
6271
Debug.Assert(this.editingPanel == null || this.editingPanel.Controls.
Count
== 0);
winforms\Managed\System\WinForms\Form.cs (7)
4422
if( this.Controls.
Count
> 1 ){ // Ignore the MdiClient control
4423
for( int index = 0; index < this.Controls.
Count
; index++ ){
4568
for (int i = children.
Count
; i-- > 0;) {
6705
Debug.WriteLineIf(ToolStrip.MDIMergeDebug.TraceVerbose, "UpdateMdiControlStrip: built up an MDI control strip for " + ActiveMdiChildInternal.Text + " with " + MdiControlStrip.Items.
Count
.ToString(CultureInfo.InvariantCulture) + " items.");
6706
Debug.WriteLineIf(ToolStrip.MDIMergeDebug.TraceVerbose, "UpdateMdiControlStrip: merging MDI control strip into source menustrip - items before: " + sourceMenuStrip.Items.
Count
.ToString(CultureInfo.InvariantCulture));
6708
Debug.WriteLineIf(ToolStrip.MDIMergeDebug.TraceVerbose, "UpdateMdiControlStrip: merging MDI control strip into source menustrip - items after: " + sourceMenuStrip.Items.
Count
.ToString(CultureInfo.InvariantCulture));
6735
int nSubItems = sourceMenuStrip.MdiWindowListItem.DropDownItems.
Count
;
winforms\Managed\System\WinForms\Layout\ArrangedElementCollection.cs (3)
47
if (other == null ||
Count
!= other.
Count
) {
51
for (int i = 0; i <
Count
; i++) {
winforms\Managed\System\WinForms\Layout\CommonProperties.cs (1)
339
for(int i = 0; i < controlsCollection.
Count
; i++) {
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (6)
32
for (int i = children.
Count
- 1; i >= 0; i--) {
242
for (int i = children.
Count
- 1; i >= 0; i--) {
267
for (int i = children.
Count
- 1; i >= 0; i--) {
470
if (!measureOnly && children.
Count
== 0) {
479
for (int i = children.
Count
- 1; i >= 0; i--) {
826
for (int i = children.
Count
- 1; i >= 0; i--) {
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (4)
115
for(int i = 0; i < container.Children.
Count
;) {
125
Debug.Assert(wrapContents == true || breakIndex == container.Children.
Count
,
140
if (container.Children.
Count
!= 0 && !measureOnly) {
159
return xLayoutRow(containerProxy, elementProxy, startIndex, /* endIndex = */ containerProxy.Container.Children.
Count
, displayRectangle, out breakIndex, /* measureOnly = */ true);
winforms\Managed\System\WinForms\Layout\TableLayout.cs (6)
1264
if (children == null || children.
Count
== 0) {
1272
for (int i = 0; i < children.
Count
; i++) {
1291
if (children == null || children.
Count
== 0) {
1674
LayoutInfo[] childInfo = new LayoutInfo[children.
Count
];
1677
for (int i = 0; i < children.
Count
; i++) {
2065
ArrayList layoutInfos = new ArrayList(container.Children.
Count
);
winforms\Managed\System\WinForms\MDIClient.cs (1)
253
for (int i=0; i < Controls.
Count
; i++) {
winforms\Managed\System\WinForms\MDIControlStrip.cs (1)
149
Debug.Assert(Items.
Count
<= 4, "Too many items in the MDIControlStrip. How did we get into this situation?");
winforms\Managed\System\WinForms\MenuStrip.cs (1)
223
if (DisplayedItems.
Count
> 0) {
winforms\Managed\System\WinForms\PropertyGrid.cs (5)
3759
if (toolStrip.Items.
Count
> 0) {
4916
m.Result = (IntPtr)toolStrip.Items.
Count
;
4923
if( index >= 0 && index < toolStrip.Items.
Count
) {
4938
if( index >= 0 && index < toolStrip.Items.
Count
) {
4968
if( index >= 0 && index < toolStrip.Items.
Count
) {
winforms\Managed\System\WinForms\RadioButton.cs (2)
504
for (int i = 0; i < children.
Count
; i++) {
528
for (int i = 0; i < children.
Count
; i++) {
winforms\Managed\System\WinForms\ScrollableControl.cs (5)
446
if (Controls.
Count
!= 0) {
458
for (int i=0; i<Controls.
Count
; i++) {
507
else if (Controls.
Count
!= 0) {
511
for (int i=0; i < Controls.
Count
; i++) {
892
for (int i=0; i<Controls.
Count
; i++) {
winforms\Managed\System\WinForms\SplitContainer.cs (2)
1916
if ((this.Panel1.Controls.
Count
> 0 || this.Panel2.Controls.
Count
> 0) || TabStop) {
winforms\Managed\System\WinForms\Splitter.cs (2)
730
int count = children.
Count
;
807
int count = children.
Count
;
winforms\Managed\System\WinForms\StatusBar.cs (1)
1128
int c = children.
Count
;
winforms\Managed\System\WinForms\StatusStrip.cs (10)
337
int itemCount = DisplayedItems.
Count
;
348
if (itemCount != DisplayedItems.
Count
|| (item != null && (inDisplayedItemCollecton != DisplayedItems.Contains(item)))) {
384
for (int i = 0; i < Items.
Count
; i++) {
470
for (int i = 0; i < this.DisplayedItems.
Count
; i++) {
495
TableLayoutSettings.ColumnCount = DisplayedItems.
Count
+1; // add an extra cell so it fills the remaining space
498
for (int i = DisplayedItems.
Count
; i < TableLayoutSettings.ColumnStyles.Count; i++) {
512
for (int i = 0; i < this.DisplayedItems.
Count
; i++) {
539
TableLayoutSettings.RowCount = DisplayedItems.
Count
+1; // add an extra cell so it fills the remaining space
542
for (int i = DisplayedItems.
Count
; i < TableLayoutSettings.RowStyles.Count; i++) {
657
if (statusStrip == null || statusStrip.Items.
Count
== 0) {
winforms\Managed\System\WinForms\TableLayoutPanel.cs (1)
207
return collection != null && collection.
Count
> 0;
winforms\Managed\System\WinForms\TableLayoutSettings.cs (1)
447
List<ControlInformation> controlsInfo = new List<ControlInformation>(Owner.Children.
Count
);
winforms\Managed\System\WinForms\ToolStrip.cs (51)
1066
LayoutTransaction.DoLayoutIf((Items.
Count
> 0), this, this, PropertyNames.ImageScalingSize);
1892
for (int i = 0; i < Items.
Count
; i++) {
1994
for (int i = 0; i < DisplayedItems.
Count
; i++) {
2110
for (int i = Items.
Count
- 1; i >= 0; i--) {
2254
if (DisplayedItems.
Count
<= 0)
2274
int count = DisplayedItems.
Count
;
2303
return DisplayedItems[DisplayedItems.
Count
- 1];
2308
return DisplayedItems[DisplayedItems.
Count
> 1 ? 1 : 0];
2349
for(int i = 0; i < DisplayedItems.
Count
; i++) {
2487
for (int j = 0; j < toolStrip.Items.
Count
; j++) {
2504
if (toolStrip.Items.
Count
== 0 || (!foundItemParticipatingInLayout)) {
2542
for (int j = 0; j < toolStrip.Items.
Count
; j++) {
2560
if (toolStrip.Items.
Count
== 0 || !foundItemParticipatingInLayout) {
2605
for (int i = 0; i < DisplayedItems.
Count
; i++) {
2708
for (int i = 0; i < this.Items.
Count
; i++) {
2712
Invalidate( this.Controls.
Count
> 0);
2724
for (int j = 0; j < DisplayedItems.
Count
; j++) {
3053
for (int i = 0; i < DisplayedItems.
Count
; i++) {
3056
index = (index +1)%DisplayedItems.
Count
;
3102
for (int i = 0; i < DisplayedItems.
Count
; i++) {
3104
index = (index +1)%DisplayedItems.
Count
;
3291
for (int i = 0; i < this.Items.
Count
; i++) {
3313
for (int i = 0; i < this.Items.
Count
; i++) {
3430
for (int j = 0; j < Items.
Count
; j++) {
3682
for (int i = 0; i < DisplayedItems.
Count
; i++) {
3784
for (int i = 0; i < Items.
Count
; i++) {
4040
for (int i = 0; i < this.DisplayedItems.
Count
; i++) {
4377
for (; j >= 0 && j < Items.
Count
; j = (pass == 0) ? j+1 : j-1){
4421
if (OverflowItems.
Count
==0) {
4437
for (int j = 0; j < Items.
Count
; j++) {
4585
sb.Append(", Items: ").Append(this.Items.
Count
);
4863
if (index < owner.Items.
Count
) {
4868
for (int i = 0; i < owner.Items.
Count
; ++i)
4881
for (int i = 0; i < owner.Items.
Count
; ++i) {
4903
if (owner.CanOverflow && owner.OverflowButton.Visible && index == owner.Items.
Count
) {
4919
for (int i = 0; i < owner.Items.
Count
; i++) {
4936
int childFragmentCount = items.
Count
;
4974
return owner.OverflowItems.
Count
;
4982
return owner.DisplayedItems.
Count
;
5011
for (int index = 0; index < items.
Count
; index++) {
5019
for (int index = 0; index < items.
Count
; index++) {
5043
return owner.Items.
Count
+ index;
5047
for (int i = 0; i < owner.Items.
Count
; ++i) {
5057
for (int i = 0; i < owner.Items.
Count
; ++i) {
5193
int i = this.Items.
Count
;
5461
else if (toolStripItemIndex == -1 && owner.Items.
Count
== 0) {
5498
else if (owner.Items.
Count
== 0) {
5509
for(int i = 0; i< owner.DisplayedItems.
Count
; i++) {
5520
if (owner.DisplayedItems.
Count
> 0) {
5521
for (int i = 0; i < owner.DisplayedItems.
Count
; i++) {
5529
return owner.Items.IndexOf(owner.DisplayedItems[owner.DisplayedItems.
Count
- 1]);
winforms\Managed\System\WinForms\ToolStripDropDown.cs (1)
1814
CancelEventArgs openEventArgs = new CancelEventArgs(/*cancel=*/(DisplayedItems.
Count
== 0));
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (4)
688
if (this.dropDown.IsAutoGenerated && this.DropDownItems.
Count
<= 0) {
884
for (int i = 0; i < owner.DropDownItems.
Count
; i++) {
903
for (int i = 0; i < owner.DropDownItems.
Count
; i++) {
957
if (index >= 0 && index < dropDown.Items.
Count
) {
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (10)
341
for (int i = 0; i < Items.
Count
; i++) {
628
if (this.Items.
Count
> 0) {
648
if (!RequiresScrollButtons || this.Items.
Count
== 0) {
665
for (int i = 0; i < this.Items.
Count
&& deltaToScroll < requiredScrollAmount; ++i) {
667
Rectangle adjustedLastItemBounds = this.Items[this.Items.
Count
- 1].Bounds;
676
if (i < this.Items.
Count
- 1) {
686
for (int i = this.Items.
Count
- 1; i >= 0 && deltaToScroll > requiredScrollAmount; --i) {
723
if (this.indexOfFirstDisplayedItem == -1 || this.indexOfFirstDisplayedItem >= this.Items.
Count
) {
743
if (this.indexOfFirstDisplayedItem == this.Items.
Count
- 1) {
801
for (int i = 0; i < this.Items.
Count
; ++i) {
winforms\Managed\System\WinForms\ToolStripDropTargetManager.cs (1)
67
for (int i = 0; i < owner.Items.
Count
; i++) {
winforms\Managed\System\WinForms\ToolStripItem.cs (1)
3960
int i = 0, count = items.
Count
;
winforms\Managed\System\WinForms\ToolStripItemCollection.cs (10)
169
int currentCount = toolStripItems.
Count
;
194
if (
Count
== 0) {
207
while (
Count
!= 0) {
208
RemoveAt(
Count
- 1);
291
for (int i = 0; i < itemsToLookIn.
Count
; i++)
309
for (int j = 0; j < itemsToLookIn.
Count
; j++)
402
for (int i = 0; i < this.
Count
; i ++) {
419
return ((index >= 0) && (index < this.
Count
));
473
if (index <
Count
&& index >= 0) {
517
if (index == this.
Count
) {
winforms\Managed\System\WinForms\ToolStripManager.cs (15)
1785
for (int i = 0; i < controlsToLookIn.
Count
; i++) {
1796
for (int i = 0; i < controlsToLookIn.
Count
; i++) {
1801
if ((controlsToLookIn[i].Controls != null) && controlsToLookIn[i].Controls.
Count
> 0) {
1833
for (int i = 0; i < destinationItems.
Count
; i++) {
1842
if (result == null && source.MergeIndex > -1 && source.MergeIndex < destinationItems.
Count
) {
1904
int originalCount = sourceToolStrip.Items.
Count
;
1918
int numberOfItemsMerged = lastCount - sourceToolStrip.Items.
Count
;
1920
lastCount = sourceToolStrip.Items.
Count
;
1958
if (tsddownDest != null && tsddownSrc != null && tsddownSrc.DropDownItems.
Count
!= 0) {
1960
int originalCount = tsddownSrc.DropDownItems.
Count
;
1973
int numberOfItemsMerged = lastCount - tsddownSrc.DropDownItems.
Count
;
1975
lastCount = tsddownSrc.DropDownItems.
Count
;
2019
int insertIndex = Math.Min(destinationItems.
Count
, source.MergeIndex);
2127
historyItem.PreviousIndexCollection.Insert(Math.Min(historyItem.PreviousIndex, historyItem.PreviousIndexCollection.
Count
), historyItem.TargetItem);
2130
historyItem.IndexCollection.Insert(Math.Min(historyItem.Index, historyItem.IndexCollection.
Count
), historyItem.TargetItem);
winforms\Managed\System\WinForms\ToolStripOverflow.cs (2)
152
for (int j = 0; j < DisplayedItems.
Count
; j++) {
172
return ((ToolStripOverflow)Owner).DisplayedItems.
Count
;
winforms\Managed\System\WinForms\ToolStripOverflowButton.cs (1)
68
return this.ParentInternal.OverflowItems.
Count
> 0;
winforms\Managed\System\WinForms\ToolStripPanel.cs (24)
339
ToolStripPanelRow[] rows = new ToolStripPanelRow[RowsInternal.
Count
];
581
if (Controls.
Count
> 0) {
584
Control[] controls = new Control[this.Controls.
Count
];
585
Point[] controlLocations = new Point[this.Controls.
Count
];
666
if (controls.
Count
> 0) {
670
Control[] controlArray = new Control[controls.
Count
];
673
int numRows = RowsInternal.
Count
;
693
if (numRows < RowsInternal.
Count
|| forceLayout) {
921
if (row >= RowsInternal.
Count
) {
1052
int index = this.RowsInternal.
Count
;
1064
if (this.RowsInternal.
Count
> 0) {
1073
&& previousRow.ControlsInternal.
Count
== 1 /*toolStripToDrag*/
1103
if (currentToolStripPanelRow != null && currentToolStripPanelRow.ControlsInternal.
Count
== 1) {
1116
if (currentToolStripPanelRow != null && currentToolStripPanelRow.ControlsInternal.
Count
>1) {
1133
for (int i = 0; i < RowsInternal.
Count
; i++) {
1230
for (int i = 0; i < this.RowsInternal.
Count
; i++) {
1255
for (int i = 0; i < RowsInternal.
Count
; i++) {
1257
for (int j = 0; j < RowsInternal[i].ControlsInternal.
Count
; j++) {
1266
Debug.Assert(RowsInternal.
Count
<= Controls.
Count
, "How did the number of rows get larger than the number of controls?");
1399
int currentCount = value.
Count
;
1429
while (
Count
!= 0) {
1430
RemoveAt(
Count
- 1);
1515
if (index <
Count
&& index >= 0) {
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (1)
267
if (ToolStripPanelRow.Cells[ToolStripPanelRow.Cells.
Count
-1] == this) {
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (76)
95
Control[] controls = new Control[ControlsInternal.
Count
];
335
if (this.ControlsInternal.
Count
<= 0) {
352
for (int i = 0; i < this.Cells.
Count
; i++) {
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++) {
425
for (int i = 0; i < Cells.
Count
; i++) {
441
for (int i = Cells.
Count
-1; i >= 0; i--) {
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++) {
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++) {
507
for (int i = 0; i < Cells.
Count
; i++) {
523
for (int i = Cells.
Count
-1; i >= 0; i--) {
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++) {
731
if (ControlsInternal.
Count
== 0) {
822
if (index >= 0 && index < Row.ControlsInternal.
Count
- 1) {
833
for (int i = index; i < Row.Cells.
Count
; i++) {
865
for (int i = index + 1; i < Row.ControlsInternal.
Count
; i++) {
970
if (index < ToolStripPanel.RowsInternal.
Count
- 1) {
991
for (int i = 0; i < Row.ControlsInternal.
Count
; i++ ){
1009
ToolStripPanelCell lastCellOnRow = GetNextVisibleCell(Row.Cells.
Count
-1, /*forward*/false);
1031
spaceToFree -= MoveLeft(Row.Cells.
Count
-1, spaceToFree);
1102
if (index +1 < Row.Cells.
Count
) {
1131
if (spaceToFree == 0 || index < 0 || index >= Row.ControlsInternal.
Count
) {
1141
for (int i = index+1; i < Row.Cells.
Count
; i++) {
1169
if (Row.Cells.
Count
> 0 && (spaceToFree > freedSpace)) {
1170
ToolStripPanelCell lastCell = GetNextVisibleCell(Row.Cells.
Count
-1, /*forward*/false);
1200
for (int i = index+1; i < Row.Cells.
Count
; i++) {
1216
if (Row.Cells.
Count
== 1) {
1242
if (index < Row.ControlsInternal.
Count
-1 /*not the last one in the row*/) {
1278
if (Row.ControlsInternal.
Count
> 0) {
1281
for (index = 0; index < Row.Cells.
Count
; index++) {
1303
if (index < Row.ControlsInternal.
Count
) {
1326
if (index < Row.ControlsInternal.
Count
-1) {
1359
ToolStripPanelCell nextCell = GetNextVisibleCell(Row.Cells.
Count
-2, /*forward*/false);
1360
ToolStripPanelCell lastCell = GetNextVisibleCell(Row.Cells.
Count
-1, /*forward*/false);
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];
1479
if (index < ToolStripPanel.RowsInternal.
Count
- 1) {
1502
for (int i = 0; i < Row.ControlsInternal.
Count
; i++ ){
1520
ToolStripPanelCell lastCellOnRow = GetNextVisibleCell(Row.Cells.
Count
-1, /*forward*/false);
1542
spaceToFree -= MoveUp(Row.Cells.
Count
-1, spaceToFree);
1616
if (index +1 < Row.Cells.
Count
) {
1646
if (spaceToFree == 0 || index < 0 || index >= Row.ControlsInternal.
Count
) {
1656
for (int i = index+1; i < Row.Cells.
Count
; i++) {
1685
if (Row.Cells.
Count
> 0 && (spaceToFree > freedSpace)) {
1686
ToolStripPanelCell lastCell = GetNextVisibleCell(Row.Cells.
Count
-1, /*forward*/false);
1708
for (int i = index+1; i < Row.Cells.
Count
; 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);
1807
if (Row.ControlsInternal.
Count
> 0) {
1811
for (index = 0; index < Row.Cells.
Count
; index++) {
1832
if (index < Row.ControlsInternal.
Count
) {
1855
if (index < Row.ControlsInternal.
Count
-1) {
1891
ToolStripPanelCell nextCell = GetNextVisibleCell(Row.Cells.
Count
-2, /*forward*/false);
1892
ToolStripPanelCell lastCell = GetNextVisibleCell(Row.Cells.
Count
-1, /*forward*/false);
1933
if (Row.Cells.
Count
>0) {
1934
ToolStripPanelCell cell = GetNextVisibleCell(Row.Cells.
Count
-1, /*forward*/false);
1955
if (index < Row.ControlsInternal.
Count
-1 /*not the last one in the row*/) {
2092
for (int i = 0; i <
Count
; i++) {
2110
while (
Count
!= 0) {
2111
RemoveAt(
Count
- 1);
2127
if (index <
Count
&& index >= 0) {
2135
for (int i = 0; i <
Count
; i++) {
2171
for (int i = 0; i <
Count
; i++) {
2260
if (index >= 0 && index <
Count
) {
winforms\Managed\System\WinForms\ToolStripSettings.cs (9)
157
StringBuilder itemNames = new StringBuilder(toolStrip.Items.
Count
);
159
for (int i = 0; i < toolStrip.Items.
Count
; i++) {
161
if (i != toolStrip.Items.
Count
- 1) {
253
for (int i = 0; ((i < toolStrip.Items.
Count
) && (i < keys.Length)); i++) {
296
for (int i = 0; i < controlsToLookIn.
Count
; i++) {
309
for (int i = 0; i < controlsToLookIn.
Count
; i++) {
313
if ((controlsToLookIn[i].Controls != null) && controlsToLookIn[i].Controls.
Count
> 0) {
347
for (int i = 0; i < controlsCollection.
Count
; i++) {
358
for (int i = 0; i < controlsCollection.
Count
; i++) {
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (2)
860
return DropDownItemsCount > 0 ? ownerItem.DropDown.Items[ownerItem.DropDown.Items.
Count
- 1].AccessibilityObject : null;
874
return ownerItem.DropDownItems.
Count
;
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (7)
103
for (ForwardsWalkingIndex = 0; ForwardsWalkingIndex < toolStrip.Items.
Count
; ForwardsWalkingIndex++) {
153
for (ForwardsWalkingIndex = 0; ForwardsWalkingIndex < ToolStrip.Items.
Count
; ForwardsWalkingIndex++) {
274
for (int j = -1; j < toolStrip.Items.
Count
; j++) {
410
for (int j = -1; j < ToolStrip.Items.
Count
; j++) {
551
for (int i = 0; i < toolStrip.Items.
Count
; i++) {
570
for (int i = 0; i < toolStrip.Items.
Count
; i++) {
591
BackwardsWalkingIndex = (backIndex == -1) ? ToolStrip.Items.
Count
- 1 : backIndex -1;
System.Workflow.ComponentModel (2)
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (2)
961
ReadonlyWorkflow workflowView = (Controls.
Count
> 0) ? Controls[0] as ReadonlyWorkflow : null;
1046
ReadonlyWorkflow workflowView = (Controls.
Count
> 0) ? Controls[0] as ReadonlyWorkflow : null;