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