292 references to Count
System.Windows.Forms (283)
winforms\Managed\System\WinForms\DataGridView.cs (13)
2186Debug.Assert(this.ptCurrentCell.Y < this.Rows.Count); 2250Debug.Assert(this.ptCurrentCell.Y >= 0 && this.ptCurrentCell.Y < this.Rows.Count); 2325Debug.Assert(this.ptCurrentCell.Y < this.Rows.Count); 2928firstDisplayedCell.RowIndex < this.Rows.Count && 3170if (value < 0 || value >= this.Rows.Count) 3951int rowCount = this.Rows.Count; 4042return this.Rows.Count; 4064if (value != this.Rows.Count) 4071else if (value < this.Rows.Count) 4074while (value < this.Rows.Count) 4076int currentRowCount = this.Rows.Count; 4078if (this.Rows.Count >= currentRowCount) 4094int rowsToAdd = value - this.Rows.Count;
winforms\Managed\System\WinForms\DataGridViewAccessibleObject.cs (3)
359UnsafeNativeMethods.IRawElementProviderSimple[] result = new UnsafeNativeMethods.IRawElementProviderSimple[this.owner.Rows.Count]; 360for (int i = 0; i < this.owner.Rows.Count; i++) 395if (row >= 0 && row < this.owner.Rows.Count &&
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (1)
535rowIndex < this.DataGridView.Rows.Count)
winforms\Managed\System\WinForms\DataGridViewButtonColumn.cs (3)
100int rowCount = dataGridViewRows.Count; 142int rowCount = dataGridViewRows.Count; 184int rowCount = dataGridViewRows.Count;
winforms\Managed\System\WinForms\DataGridViewCell.cs (6)
1567if (rowIndex < 0 || rowIndex >= this.DataGridView.Rows.Count) 2017if (rowIndex < 0 || rowIndex >= this.DataGridView.Rows.Count) 2086if (rowIndex < 0 || rowIndex >= this.DataGridView.Rows.Count) 2160if (rowIndex < 0 || rowIndex >= this.DataGridView.Rows.Count) 2670if (rowIndex < 0 || rowIndex >= dataGridView.Rows.Count) 3466if (this.DataGridView != null && e.ColumnIndex < this.DataGridView.Columns.Count && e.RowIndex < this.DataGridView.Rows.Count)
winforms\Managed\System\WinForms\DataGridViewCellPaintingEventArgs.cs (3)
192if (this.rowIndex < -1 || this.rowIndex >= this.dataGridView.Rows.Count) 216if (this.rowIndex < -1 || this.rowIndex >= this.dataGridView.Rows.Count) 245if (this.rowIndex < -1 || this.rowIndex >= this.dataGridView.Rows.Count)
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (2)
966rowIndex < this.DataGridView.Rows.Count) 1085Debug.Assert((position.Y >= 0) && (position.Y < this.DataGridView.Rows.Count));
winforms\Managed\System\WinForms\DataGridViewCheckBoxColumn.cs (5)
118int rowCount = dataGridViewRows.Count; 158int rowCount = dataGridViewRows.Count; 199int rowCount = dataGridViewRows.Count; 242int rowCount = dataGridViewRows.Count; 296int rowCount = dataGridViewRows.Count;
winforms\Managed\System\WinForms\DataGridViewComboBoxColumn.cs (11)
57int rowCount = dataGridViewRows.Count; 134int rowCount = dataGridViewRows.Count; 177int rowCount = dataGridViewRows.Count; 218int rowCount = dataGridViewRows.Count; 260int rowCount = dataGridViewRows.Count; 300int rowCount = dataGridViewRows.Count; 339int rowCount = dataGridViewRows.Count; 402int rowCount = dataGridViewRows.Count; 441int rowCount = dataGridViewRows.Count; 480int rowCount = dataGridViewRows.Count; 526int rowCount = dataGridViewRows.Count;
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (9)
590this.currencyManager.List.Count == (this.owner.AllowUserToAddRowsInternal ? this.owner.Rows.Count - 1 : this.owner.Rows.Count)) 685if (this.owner.NewRowIndex == -1 || e.NewIndex != this.owner.Rows.Count) 747if (this.owner.Rows.Count > 0 && 773if (this.owner.Rows.Count == (owner.AllowUserToAddRowsInternal ? 1 : 0)) 849int result = this.owner.Rows.Count; 850if (this.owner.AllowUserToAddRowsInternal && this.owner.Rows.Count > 0) 1346else if (rowIndex < this.owner.Rows.Count) 1370(columnIndex < this.owner.Columns.Count && rowIndex < this.owner.Rows.Count &&
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (2)
334(this.DataGridView != null && (rowIndex < 0 || rowIndex >= this.DataGridView.Rows.Count))) 459if (rowIndex < 0 || rowIndex >= this.DataGridView.Rows.Count)
winforms\Managed\System\WinForms\DataGridViewImageColumn.cs (3)
117int rowCount = dataGridViewRows.Count; 211int rowCount = dataGridViewRows.Count; 250int rowCount = dataGridViewRows.Count;
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
839rowIndex < this.DataGridView.Rows.Count)
winforms\Managed\System\WinForms\DataGridViewLinkColumn.cs (7)
52int rowCount = dataGridViewRows.Count; 123int rowCount = dataGridViewRows.Count; 162int rowCount = dataGridViewRows.Count; 214int rowCount = dataGridViewRows.Count; 256int rowCount = dataGridViewRows.Count; 296int rowCount = dataGridViewRows.Count; 335int rowCount = dataGridViewRows.Count;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (162)
43if (cellAddress.Y < 0 || cellAddress.Y >= this.Rows.Count) 86this.newRowIndex = this.Rows.Count - 1; 317Debug.Assert(rowIndex < this.Rows.Count); 378Debug.Assert(rowIndex >= 0 && rowIndex < this.Rows.Count); 1370if (this.Columns.Count == 0 && this.Rows.Count == 0) 1387allCellsSelected = this.individualSelectedCells.Count == this.Columns.Count * this.Rows.Count; 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; 1952if (rowIndex < 0 || rowIndex >= this.Rows.Count) 2138if (rowIndex < -1 || rowIndex >= this.Rows.Count) 2298Debug.Assert(rowIndex >= 0 && rowIndex < this.Rows.Count); 2616Debug.Assert(this.ptCurrentCell.Y >= 0 && this.ptCurrentCell.Y < this.Rows.Count); 3165Debug.Assert((this.AllowUserToAddRowsInternal && this.Rows.Count == 1) || 3166(!this.AllowUserToAddRowsInternal && this.Rows.Count == 0)); 3167if (this.Rows.Count > 0) 3531if (rowIndexException < 0 || rowIndexException >= this.Rows.Count) 3541if (rowIndexException < -1 || rowIndexException >= this.Rows.Count) 4135if (rowIndex >= this.Rows.Count) 4246int indexTmp = this.Rows.Count; 4753int nRows = this.Rows.Count; 5226Debug.Assert(anticipatedRowIndex >= 0 && anticipatedRowIndex <= this.Rows.Count); 5350int rowsCount = this.Rows.Count; 5376int rowsCount = this.Rows.Count; 5464Debug.Assert(this.Rows.Count > 1); 5475Debug.Assert(this.newRowIndex == this.Rows.Count - 1); 5486this.newRowIndex = this.Rows.Count - 1; 5857dgvcme.RowIndex < this.Rows.Count) 5868dgvcme.RowIndex < this.Rows.Count) 5880if (dgvcme.ColumnIndex < this.Columns.Count && dgvcme.RowIndex < this.Rows.Count) 5920dgvcme.RowIndex < this.Rows.Count) 5929dgvcme.RowIndex < this.Rows.Count) 5937dgvcme.RowIndex < this.Rows.Count) 5945dgvcme.RowIndex < this.Rows.Count) 5953dgvcme.RowIndex < this.Rows.Count) 6417Debug.Assert(rowIndex < this.Rows.Count); 6561rowIndexTmp < this.Rows.Count && 6937return cellCount + this.selectedBandIndexes.Count * this.Rows.Count; 6971for (int rowIndex = 0; rowIndex < this.Rows.Count; rowIndex++) 7007return this.Rows.Count * this.Columns.Count; 7016for (int rowIndex = 0; rowIndex < this.Rows.Count; rowIndex++) 7125if (rowIndex >= this.Rows.Count) 7182Debug.Assert(rowIndex >= -1 && rowIndex < this.Rows.Count); 9108if (rowIndex < 0 || rowIndex >= this.Rows.Count) 9117Debug.Assert(rowIndex >= 0 && rowIndex < this.Rows.Count); 9283Debug.Assert(index >= 0 && index < this.Rows.Count); 9959if (rowIndex < -1 || rowIndex >= this.Rows.Count) 10030if (rowIndex < 0 || rowIndex >= this.Rows.Count) 10039Debug.Assert(rowIndex >= 0 && rowIndex < this.Rows.Count); 10064Debug.Assert(lo < this.Rows.Count); 10065Debug.Assert(hi < this.Rows.Count); 10218return columnIndex >= this.Columns.Count || rowIndex >= this.Rows.Count || columnIndex == -1 || rowIndex == -1; 10223return rowIndex >= this.Rows.Count || rowIndex == -1; 10572firstDisplayedCellAddress.Y != this.Rows.Count - 1)) 10694Debug.Assert(this.ptCurrentCell.Y >= 0 && this.ptCurrentCell.Y < this.Rows.Count); 10765Debug.Assert(rowIndex == this.Rows.Count - 1); 10942if (this.Rows.Count > 0) 10960for (int rowIndex = 0; rowIndex < this.Rows.Count; rowIndex++) 10979for (int rowIndex = 0; rowIndex < this.Rows.Count; rowIndex++) 11019if (this.Rows.Count > 0 && dataGridViewColumn.CellType == null) 11080if (this.Rows.Count > 0) 11102for (int rowIndex = 0; rowIndex < this.Rows.Count; rowIndex++) 11122for (int rowIndex = 0; rowIndex < this.Rows.Count; rowIndex++) 11151CorrectRowFrozenState(dataGridViewRow, rowState, this.Rows.Count); 11217CorrectRowFrozenStates(dataGridViewRows, this.Rows.Count /*rowIndexInserted*/); 11728if (e.RowIndex >= this.Rows.Count) 11765if (e.RowIndex >= this.Rows.Count) 11851if (e.RowIndex >= this.Rows.Count) 11887if (e.RowIndex >= this.Rows.Count) 11924if (e.RowIndex >= this.Rows.Count) 11950if (e.RowIndex >= this.Rows.Count) 11969if (e.RowIndex >= this.Rows.Count) 12000if (e.RowIndex >= this.Rows.Count) 12022Debug.Assert(rowIndex < this.Rows.Count && columnIndex < this.Columns.Count); 12036if (e.RowIndex >= this.Rows.Count) 12073if (e.RowIndex >= this.Rows.Count) 12103if (e.RowIndex >= this.Rows.Count) 12133if (e.RowIndex >= this.Rows.Count) 12155Debug.Assert(rowIndex < this.Rows.Count && columnIndex < this.Columns.Count); 12169if (e.RowIndex >= this.Rows.Count) 12198if (e.RowIndex >= this.Rows.Count) 12230if (e.RowIndex >= this.Rows.Count) 12262if (e.RowIndex >= this.Rows.Count) 12475if (hti.row >= this.Rows.Count) 12924if (e.RowIndex >= this.Rows.Count) 12958if (e.RowIndex >= this.Rows.Count) 12992if (e.RowIndex >= this.Rows.Count) 13060if (e.RowIndex >= this.Rows.Count) 13091if (e.RowIndex >= this.Rows.Count) 13120if (e.RowIndex >= this.Rows.Count) 13218if (e.RowIndex >= this.Rows.Count) 13404if (e.RowIndex >= this.Rows.Count) 13430if (e.RowIndex >= this.Rows.Count) 13452Debug.Assert(rowIndex < this.Rows.Count && columnIndex < this.Columns.Count); 13466if (e.RowIndex >= this.Rows.Count) 13504Debug.Assert(rowIndex < this.Rows.Count && columnIndex < this.Columns.Count); 13519if (e.RowIndex >= this.Rows.Count) 13557if (e.RowIndex >= this.Rows.Count) 13586if (e.RowIndex < 0 || e.RowIndex >= this.Rows.Count) 13617if (e.RowIndex < 0 || e.RowIndex >= this.Rows.Count) 13738if (this.Columns.Count != 0 && this.Rows.Count == 0) 15906if (this.Rows.Count > 0) 15924for (int rowIndex = 0; rowIndex < this.Rows.Count; rowIndex++) 15944for (int rowIndex = 0; rowIndex < this.Rows.Count; rowIndex++) 16352if (dgvcme.ColumnIndex < this.Columns.Count && dgvcme.RowIndex < this.Rows.Count) 16373if (dgvcme.ColumnIndex < this.Columns.Count && dgvcme.RowIndex < this.Rows.Count) 16383if (dgvcme.ColumnIndex < this.Columns.Count && dgvcme.RowIndex < this.Rows.Count) 16438if (dgvcme.ColumnIndex < this.Columns.Count && dgvcme.RowIndex < this.Rows.Count) 16474if (dgvcme.ColumnIndex < this.Columns.Count && dgvcme.RowIndex < this.Rows.Count) 16485if (rowIndex < this.Rows.Count) 16586this.ptMouseEnteredCell.Y >= -1 && this.ptMouseEnteredCell.Y < this.Rows.Count) 16825if (dgvcme.ColumnIndex < this.Columns.Count && dgvcme.RowIndex < this.Rows.Count) 17564for (int rowIndex = 0; rowIndex < this.Rows.Count; rowIndex++) 17690Debug.Assert(rowIndexDeleted >= 0 && rowIndexDeleted < this.Rows.Count); 17706Debug.Assert(this.newRowIndex == this.Rows.Count-1); 17707if (rowIndexNext > -1 && rowIndexNext < this.Rows.Count - 1) 17969this.Rows.Count == 0 && 18075if (!e.Handled && e.Button == MouseButtons.Left && e.RowIndex < this.Rows.Count) 18120if (rowIndex < this.Rows.Count && 18161if (calledAddNewOnTheDataConnection && rowIndex > this.Rows.Count - 1) 18165rowIndex = Math.Min(rowIndex, this.Rows.Count - 1); 18187Debug.Assert(rowIndex < this.Rows.Count && columnIndex < this.Columns.Count); 18481if (hti.row >= this.Rows.Count) 18823if (rowIndex < this.Rows.Count && columnIndex < this.Columns.Count) 18835Debug.Assert(rowIndex < this.Rows.Count && columnIndex < this.Columns.Count); 19270if (dataGridViewCell != null && rowIndex < this.Rows.Count && columnIndex < this.Columns.Count) 19318Debug.Assert(rowIndex < this.Rows.Count && columnIndex < this.Columns.Count); 20049if (this.Columns.Count > 0 || this.Rows.Count > 0) 20482if (rowIndex == this.newRowIndex || rowIndex >= this.Rows.Count) 20495int dataGridRowsCount = this.Rows.Count; 20547if (dataGridRowsCount != this.Rows.Count) 25503Debug.Assert(this.newRowIndex == this.Rows.Count - 1); 26081Debug.Assert(rowIndex < this.Rows.Count); 26312Debug.Assert(rowIndex >= 0 && rowIndex < this.Rows.Count); 26313Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingRow >= -1 && this.displayedBandsInfo.FirstDisplayedScrollingRow < this.Rows.Count); 26371Debug.Assert(rowIndex >= 0 && rowIndex < this.Rows.Count); 26655int rowIndex = 0, maxRowIndex = this.Rows.Count; 26673int rowIndex = 0, maxRowIndex = this.Rows.Count; 26751if (index >= this.Rows.Count) 26753index -= this.Rows.Count; 26838rowIndex >= this.Rows.Count) 26865rowIndex < this.Rows.Count); 26979if (rowIndex >= this.Rows.Count) 27023if (oldCurrentCellX < this.Columns.Count && oldCurrentCellY < this.Rows.Count) 27027if (oldCurrentCellY != this.ptCurrentCell.Y && this.RowHeadersVisible && oldCurrentCellY < this.Rows.Count) 27164if (oldCurrentCellX < this.Columns.Count && oldCurrentCellY < this.Rows.Count) 27168if (this.RowHeadersVisible && oldCurrentCellY < this.Rows.Count) 27488rowIndex < this.Rows.Count); 27524for (int row = rowIndex+1; row < this.Rows.Count; row++) 27593Debug.Assert(rowIndex >= 0 && rowIndex < this.Rows.Count); 27638if (rowIndex < 0 || rowIndex >= this.Rows.Count) 27671if (this.Rows.Count > DATAGRIDVIEW_bulkPaintThreshold) 27688for (int row = rowIndex+1; row < this.Rows.Count; row++) 28068if (rowIndex < 0 || rowIndex >= this.Rows.Count) 28910if (rowIndex < -1 || rowIndex >= this.Rows.Count) 28927if (rowIndex < 0 || rowIndex >= this.Rows.Count) 28982if (rowIndex < 0 || rowIndex >= this.Rows.Count) 28995if (rowIndexStart < 0 || rowIndexStart >= this.Rows.Count) 28999if (rowIndexEnd < 0 || rowIndexEnd >= this.Rows.Count) 29033if ((updateToEnd && rowIndex < 0) || (!updateToEnd && rowIndex < -1) || rowIndex >= this.Rows.Count) 29213this.ptMouseEnteredCell.Y < this.Rows.Count) 29237this.ptMouseEnteredCell.Y < this.Rows.Count)
winforms\Managed\System\WinForms\DataGridViewRow.cs (4)
1313if (rowIndex < 0 || rowIndex >= this.DataGridView.Rows.Count) 1343if (rowIndex < 0 || rowIndex >= this.DataGridView.Rows.Count) 1390if (!(this.DataGridView == null || (rowIndex >= 0 && rowIndex < this.DataGridView.Rows.Count))) 1474if (!(this.DataGridView == null || (rowIndex >= 0 && rowIndex < this.DataGridView.Rows.Count)))
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (34)
149return this.Count; 220int rowCount = this.Count; 375Debug.Assert(this.DataGridView.NewRowIndex == this.Count - 1); 376int insertionIndex = this.Count - 1; 537Debug.Assert(this.DataGridView.NewRowIndex == this.Count - 1); 538int insertionIndex = this.Count - 1; 575Debug.Assert(this.DataGridView.NewRowIndex == this.Count - 1); 576int insertionIndex = this.Count - 1; 646Debug.Assert(this.DataGridView.NewRowIndex == this.Count - 1); 648int insertionIndex = this.Count - 1; 653if (indexSource < 0 || indexSource >= this.Count) 710Debug.Assert(this.DataGridView.NewRowIndex == this.Count - 1); 711int insertionIndex = this.Count - 1; 721if (indexSource < 0 || this.Count <= indexSource) 878Debug.Assert(this.DataGridView.NewRowIndex == this.Count - 1); 879InsertRange(this.Count - 1, dataGridViewRows); 1009for (int i = 0; i < this.Count; i++) 1526if (rowIndex < 0 || this.Count < rowIndex) 1551if (this.DataGridView.NewRowIndex != -1 && rowIndex == this.Count) 1583if (rowIndex < 0 || this.Count < rowIndex) 1598if (this.DataGridView.NewRowIndex != -1 && rowIndex == this.Count) 1626Debug.Assert(rowIndex >= 0 && rowIndex <= this.Count); 1630Debug.Assert(this.DataGridView.NewRowIndex == -1 || rowIndex != this.Count); 1713if (indexSource < 0 || this.Count <= indexSource) 1718if (indexDestination < 0 || this.Count < indexDestination) 1728if (this.DataGridView.NewRowIndex != -1 && indexDestination == this.Count) 1888if (rowIndex < 0 || rowIndex > this.Count) 1898if (this.DataGridView.NewRowIndex != -1 && rowIndex == this.Count) 2290if (index < 0 || index >= this.Count) 2328Debug.Assert(index >= 0 && index < this.Count); 2375Debug.Assert(index < this.Count); 2925if (this.current < this.owner.Count - 1) 2932this.current = this.owner.Count; 2956if (this.current == this.owner.Count)
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (3)
224if (rowIndex < 0 || rowIndex >= this.DataGridView.Rows.Count) 421if (this.DataGridView != null && (rowIndex < 0 || rowIndex >= this.DataGridView.Rows.Count)) 702if (this.DataGridView != null && (rowIndex < -1 || rowIndex >= this.DataGridView.Rows.Count))
winforms\Managed\System\WinForms\DataGridViewRowPostPaintEventArgs.cs (5)
158if (this.rowIndex < 0 || this.rowIndex >= this.dataGridView.Rows.Count) 174if (this.rowIndex < 0 || this.rowIndex >= this.dataGridView.Rows.Count) 191if (this.rowIndex < 0 || this.rowIndex >= this.dataGridView.Rows.Count) 213if (this.rowIndex < 0 || this.rowIndex >= this.dataGridView.Rows.Count) 241if (this.rowIndex < 0 || this.rowIndex >= this.dataGridView.Rows.Count)
winforms\Managed\System\WinForms\DataGridViewRowPrePaintEventArgs.cs (5)
177if (this.rowIndex < 0 || this.rowIndex >= this.dataGridView.Rows.Count) 193if (this.rowIndex < 0 || this.rowIndex >= this.dataGridView.Rows.Count) 210if (this.rowIndex < 0 || this.rowIndex >= this.dataGridView.Rows.Count) 232if (this.rowIndex < 0 || this.rowIndex >= this.dataGridView.Rows.Count) 260if (this.rowIndex < 0 || this.rowIndex >= this.dataGridView.Rows.Count)
winforms\Managed\System\WinForms\DataGridViewTextBoxColumn.cs (1)
73int rowCount = dataGridViewRows.Count;
System.WorkflowServices (9)
System\Workflow\Activities\Design\ServiceOperationDetailViewControl.cs (9)
164Fx.Assert(this.parametersGrid.Rows.Count != 0, "parameters grid should have atleast the dummy <add new> item"); 165this.parametersGrid.Rows.Insert(this.parametersGrid.Rows.Count - 1, GenerateParameterName(), typeof(string), SR2.GetString(SR2.ParameterDirectionIn)); 167this.parametersGrid.CurrentCell = this.parametersGrid.Rows[this.parametersGrid.Rows.Count - 2].Cells[this.nameColumn.Index]; 294Fx.Assert(currentRowIndex < (this.parametersGrid.Rows.Count - 2), "cant move down the template row or the one above it"); 309Fx.Assert(currentRowIndex != (this.parametersGrid.Rows.Count - 1), "cant move up the template row"); 569if (currentRowIndex != (this.parametersGrid.Rows.Count - 1) && (currentRowIndex != 0)) 576if (currentRowIndex < (this.parametersGrid.Rows.Count - 2)) 588Fx.Assert(currentRowIndex != (this.parametersGrid.Rows.Count - 1), "cant delete the template row"); 773if (parameterName.Equals(this.ParameterTemplateRowName) && (e.RowIndex == this.parametersGrid.Rows.Count - 1))