73 references to Count
System.Windows.Forms (73)
winforms\Managed\System\WinForms\DataGridViewIntLinkedList.cs (1)
41int elements = source.Count;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (72)
1418allCellsSelected = this.selectedBandIndexes.Count * this.Rows.Count + this.individualSelectedCells.Count == this.Columns.Count * this.Rows.Count; 1451allCellsSelected = this.selectedBandIndexes.Count * this.Columns.Count + this.individualSelectedCells.Count == this.Columns.Count * this.Rows.Count; 3439if (this.selectedBandIndexes.Count > DATAGRIDVIEW_bulkPaintThreshold || 3460while(this.selectedBandIndexes.Count > 0) 3478while(this.selectedBandIndexes.Count > 0) 3555if (this.selectedBandIndexes.Count > DATAGRIDVIEW_bulkPaintThreshold || 3577while (bandIndex < this.selectedBandIndexes.Count) 3600while (bandIndex < this.selectedBandIndexes.Count) 6937return cellCount + this.selectedBandIndexes.Count * this.Rows.Count; 6942return cellCount + this.selectedBandIndexes.Count * this.Columns.Count; 12569Debug.Assert(this.MultiSelect || this.selectedBandIndexes.Count <= 1); 12572if (this.selectedBandIndexes.Count > DATAGRIDVIEW_bulkPaintThreshold) 12579while (bandIndex < this.selectedBandIndexes.Count) 12642Debug.Assert(this.selectedBandIndexes.Count <= 1); 12643if (this.selectedBandIndexes.Count > 0) 12659if (this.selectedBandIndexes.Count > DATAGRIDVIEW_bulkPaintThreshold) 12666while (this.selectedBandIndexes.Count > 0) 12705Debug.Assert(this.selectedBandIndexes.Count <= 1); 12706if (this.selectedBandIndexes.Count > 0) 12746Debug.Assert(this.MultiSelect || this.selectedBandIndexes.Count <= 1); 12749if (this.selectedBandIndexes.Count > DATAGRIDVIEW_bulkPaintThreshold) 12756while (bandIndex < this.selectedBandIndexes.Count) 12822Debug.Assert(this.selectedBandIndexes.Count <= 1); 12823if (this.selectedBandIndexes.Count > 0) 12839if (this.selectedBandIndexes.Count > DATAGRIDVIEW_bulkPaintThreshold) 12846while (this.selectedBandIndexes.Count > 0) 12885Debug.Assert(this.selectedBandIndexes.Count <= 1); 12886if (this.selectedBandIndexes.Count > 0) 13683this.dataGridViewState2[DATAGRIDVIEWSTATE2_raiseSelectionChanged] = this.selectedBandIndexes.Count > 0 || 14243Debug.Assert(this.MultiSelect || this.selectedBandIndexes.Count <= 1); 14246if (this.selectedBandIndexes.Count > DATAGRIDVIEW_bulkPaintThreshold) 14253while (bandIndex < this.selectedBandIndexes.Count) 15966int columnEntries = this.selectedBandIndexes.Count; 15979columnEntries = this.selectedBandSnapshotIndexes.Count; 16046int rowEntries = this.selectedBandIndexes.Count; 16059rowEntries = this.selectedBandSnapshotIndexes.Count; 16102int rowEntries = this.selectedBandIndexes.Count; 16115rowEntries = this.selectedBandSnapshotIndexes.Count; 17658int columnEntries = this.selectedBandIndexes.Count; 17765int rowEntries = this.selectedBandIndexes.Count; 17787rowEntries = this.selectedBandSnapshotIndexes.Count; 18523Debug.Assert(this.MultiSelect || this.selectedBandIndexes.Count <= 1); 18526if (this.selectedBandIndexes.Count > DATAGRIDVIEW_bulkPaintThreshold) 18533while (bandIndex < this.selectedBandIndexes.Count) 20478while (this.selectedBandSnapshotIndexes.Count > remainingSelectedRows) 24471if (this.selectedBandIndexes.Count > DATAGRIDVIEW_bulkPaintThreshold) 24481Debug.Assert(this.MultiSelect || this.selectedBandIndexes.Count <= 1); 24483while (bandIndex < this.selectedBandIndexes.Count) 24506Debug.Assert(this.MultiSelect || this.selectedBandIndexes.Count <= 1); 24508while (bandIndex < this.selectedBandIndexes.Count) 26748int selectedBand = 0, selectedBands = this.selectedBandIndexes.Count; 26773int selectedBand = 0, selectedBands = this.selectedBandIndexes.Count; 27427if (this.MultiSelect && (this.individualSelectedCells.Count + this.selectedBandIndexes.Count) > 1) 27439else if (this.selectedBandIndexes.Count == 1) 27787Debug.Assert(this.selectedBandIndexes.Count <= 1); 27789while (bandIndex < this.selectedBandIndexes.Count) 27823Debug.Assert(this.selectedBandIndexes.Count <= 1); 27824if (this.selectedBandIndexes.Count > 0) 27839Debug.Assert(this.selectedBandIndexes.Count <= 1); 27840if (this.selectedBandIndexes.Count > 0) 27863Debug.Assert(this.selectedBandIndexes.Count <= 1); 27865while (bandIndex < this.selectedBandIndexes.Count) 27903Debug.Assert(this.selectedBandIndexes.Count <= 1); 27904if (this.selectedBandIndexes.Count > 0) 27919Debug.Assert(this.selectedBandIndexes.Count <= 1); 27920if (this.selectedBandIndexes.Count > 0) 27989Debug.Assert(this.MultiSelect || this.selectedBandIndexes.Count <= 1); 28001Debug.Assert(this.selectedBandIndexes.Count <= 1); 28002if (this.selectedBandIndexes.Count > 0) 28105Debug.Assert(this.MultiSelect || this.selectedBandIndexes.Count <= 1); 28117Debug.Assert(this.selectedBandIndexes.Count <= 1); 28118if (this.selectedBandIndexes.Count > 0)