Implemented interface member:
property
Count
System.Collections.ICollection.Count
1 override of Count
System.Windows.Forms (1)
winforms\Managed\System\WinForms\BindingsCollection.cs (1)
31
public override int
Count
{
345 references to Count
System.Windows.Forms (345)
winforms\Managed\System\WinForms\BindingsCollection.cs (1)
36
return base.
Count
;
winforms\Managed\System\WinForms\DataGrid.cs (58)
910
if (DataGridRowsLength == 0 || this.myGridTable.GridColumnStyles == null || this.myGridTable.GridColumnStyles.
Count
== 0)
929
int columnCount = myGridTable.GridColumnStyles.
Count
;
1140
currentCellAccIndex += this.myGridTable.GridColumnStyles.
Count
; // ColumnHeaderAccessibleObject
1146
currentCellAccIndex += (this.currentRow * this.myGridTable.GridColumnStyles.
Count
) + this.currentCol;
2987
return Math.Min(numVisibleCols, this.myGridTable == null ? 0 : this.myGridTable.GridColumnStyles.
Count
);
3018
if (columnIndex < 0 || columnIndex >= myGridTable.GridColumnStyles.
Count
)
3028
if (columnIndex < 0 || columnIndex >= myGridTable.GridColumnStyles.
Count
)
3523
if (firstVisibleCol > -1 && firstVisibleCol < columns.
Count
&& columns[firstVisibleCol] == editColumn)
3627
for (int i = this.firstVisibleCol; i > -1 && i < cols.
Count
&& cols[i].Width == 0; i ++) {
4000
if (coll != null && currentCol > 0 && currentCol < coll.
Count
) {
4731
for (int j = 0; j < myGridTable.GridColumnStyles.
Count
; j++) {
4787
for (int i = this.lastTotallyVisibleCol + 1; i < this.myGridTable.GridColumnStyles.
Count
; i ++) {
4807
int colCount = this.myGridTable.GridColumnStyles.
Count
;
4946
for (int i = this.lastTotallyVisibleCol + 1; i < this.myGridTable.GridColumnStyles.
Count
; i ++) {
4957
int colCount = this.myGridTable.GridColumnStyles.
Count
;
5060
int columnsCount = columns.
Count
;
5512
int nGridCols = columns.
Count
;
5523
if (visibleWidth < 0 || columns.
Count
== 0)
5594
if (myGridTable != null && myGridTable.GridColumnStyles != null && myGridTable.GridColumnStyles.
Count
!= 0) {
5597
int nGridCols = columns.
Count
;
5823
for (int i = 0; i < tables.
Count
; i++)
5912
if (this.myGridTable.GridColumnStyles.
Count
== 0)
6201
int columnCount = columns.
Count
;
6227
int lastCol = Math.Min(col, columns.
Count
);
6254
int columnsCount = columns.
Count
;
6544
int numCols = columns.
Count
;
6591
if (column < 0 || gridColumns == null || gridColumns.
Count
<= column)
6605
int gridColumnsCount = gridColumns.
Count
;
6737
int nGridCols = myGridTable.GridColumnStyles.
Count
;
6926
if (this.myGridTable.GridColumnStyles.
Count
> 0 && this.myGridTable.GridColumnStyles[0].Width == -1) {
7150
int nGridCols = gridColumns.
Count
;
7402
int numCols = myGridTable.GridColumnStyles.
Count
- firstVisibleCol;
7517
if (currentCol >= 0 && currentCol < columns.
Count
)
7540
int numCols = columns.
Count
;
7630
for (i = startCol + 1; i < cols.
Count
; i++) {
7682
int lastColumnMarkedVisible = cols.
Count
;
7683
for (int i = 0; i < cols.
Count
; i++) {
7690
for (int i = cols.
Count
- 1 ; i >= 0; i--) {
7988
int newCol = MoveLeftRight(this.myGridTable.GridColumnStyles, this.myGridTable.GridColumnStyles.
Count
, false);
8025
if (newCol == cols.
Count
+ 1) {
8256
int columnCount = myGridTable.GridColumnStyles.
Count
;
8306
int firstColumnMarkedVisible = cols.
Count
-1;
8329
for (int i = 0; i < cols.
Count
; i ++) {
8336
for (int i = cols.
Count
- 1; i >= 0; i --) {
8349
if (cols.
Count
> 0)
8394
if (cols.
Count
> 0)
8448
Debug.Assert(nextCol < cols.
Count
, "we already checked that we are not at the lastColumnMarkedVisible");
8648
int nGridCols = gridColumns.
Count
;
8725
if (gridTable.GridColumnStyles.
Count
== 0 && !DesignMode) {
8737
for (int i = 0; i < gridCols.
Count
; i ++)
8759
if (gridTable.GridColumnStyles.
Count
> 0 && gridTable.GridColumnStyles[0].Width == -1) {
8973
DataGridTableStyle[] tables = new DataGridTableStyle[dgrid.TableStyles.
Count
];
8980
DataGridColumnStyle[] columns = new DataGridColumnStyle[table.GridColumnStyles.
Count
];
9056
return ((DataGrid)Owner).myGridTable.GridColumnStyles.
Count
;
9139
int colCount = dataGrid.myGridTable.GridColumnStyles.
Count
;
9144
if (currentRow < dataGrid.dataGridRows.Length && currentCol < dataGrid.myGridTable.GridColumnStyles.
Count
) {
9162
n += this.DataGrid.DataGridRows.Length * this.DataGrid.myGridTable.GridColumnStyles.
Count
;
9175
if (this.DataGrid.DataGridRows.Length == 0 || this.DataGrid.myGridTable.GridColumnStyles.
Count
== 0) {
winforms\Managed\System\WinForms\DataGridColumn.cs (1)
1225
for (int i = 0; i < cols.
Count
; i++)
winforms\Managed\System\WinForms\DataGridColumnCollection.cs (3)
323
for (int i = 0; i <
Count
; i++) {
349
for (int i = 0; i <
Count
; i ++) {
570
for (int i = 0; i < this.
Count
; i++) {
winforms\Managed\System\WinForms\DataGridParentRows.cs (6)
363
for (int j=0; j<cols.
Count
; j++) {
603
if (colNum < columns.
Count
) {
623
if (colNum < columns.
Count
) {
638
colNum = Math.Max(colNum, dgs.GridColumnStyles.
Count
);
912
for (int i = 0; i < cols.
Count
; i ++) {
967
if ( i < cols.
Count
- 1)
winforms\Managed\System\WinForms\DataGridRow.cs (13)
110
int nCols = columns.
Count
;
340
if (columns != null && currentColIndex >= 0 && currentColIndex < columns.
Count
) {
487
int nCols = columns.
Count
;
702
if (column < grid.myGridTable.GridColumnStyles.
Count
) {
711
if (column < grid.myGridTable.GridColumnStyles.
Count
) {
736
cells = new ArrayList(DataGrid.myGridTable.GridColumnStyles.
Count
+ 2);
745
int len = cols.
Count
;
865
return DataGrid.AccessibilityObject.GetChild(1 + owner.dgTable.GridColumnStyles.
Count
+ owner.RowNumber + 1);
870
return DataGrid.AccessibilityObject.GetChild(1 + owner.dgTable.GridColumnStyles.
Count
+ owner.RowNumber - 1);
1022
AccessibleObject o = DataGrid.AccessibilityObject.GetChild(1 + owner.dgTable.GridColumnStyles.
Count
+ owner.RowNumber + 1);
1029
return DataGrid.AccessibilityObject.GetChild(1 + owner.dgTable.GridColumnStyles.
Count
+ owner.RowNumber + 1).Navigate(AccessibleNavigation.FirstChild);
1031
return DataGrid.AccessibilityObject.GetChild(1 + owner.dgTable.GridColumnStyles.
Count
+ owner.RowNumber - 1).Navigate(AccessibleNavigation.FirstChild);
1038
AccessibleObject o = DataGrid.AccessibilityObject.GetChild(1 + owner.dgTable.GridColumnStyles.
Count
+ owner.RowNumber - 1);
winforms\Managed\System\WinForms\DataGridTable.cs (3)
1582
int nCols = gridColumns.
Count
;
1687
for (int i = 0; i < gridColumns.
Count
; i++ )
1895
for (int i = 0; i < cols.
Count
; i++)
winforms\Managed\System\WinForms\DataGridView.cs (16)
1138
DataGridViewAutoSizeColumnMode[] previousModes = new DataGridViewAutoSizeColumnMode[this.Columns.
Count
];
1766
return this.Columns.
Count
;
1778
if (value != this.Columns.
Count
)
1785
else if (value < this.Columns.
Count
)
1788
while (value < this.Columns.
Count
)
1790
int currentColumnCount = this.Columns.
Count
;
1792
if (this.Columns.
Count
>= currentColumnCount)
1802
while (value > this.Columns.
Count
)
1804
int currentColumnCount = this.Columns.
Count
;
1806
if (this.Columns.
Count
<= currentColumnCount)
2185
Debug.Assert(this.ptCurrentCell.X < this.Columns.
Count
);
2249
Debug.Assert(this.ptCurrentCell.X >= 0 && this.ptCurrentCell.X < this.Columns.
Count
);
2930
firstDisplayedCell.ColumnIndex < this.Columns.
Count
);
3094
if (value < 0 || value >= this.Columns.
Count
)
3947
for (int columnIndex = 0; columnIndex < this.Columns.
Count
; columnIndex++)
4088
if (this.Columns.
Count
== 0)
winforms\Managed\System\WinForms\DataGridViewAccessibleObject.cs (6)
98
if (this.owner.Columns.
Count
== 0)
148
if (this.owner.Columns.
Count
== 0)
302
for (int i = 0; i < owner.Columns.
Count
; i++)
375
UnsafeNativeMethods.IRawElementProviderSimple[] result = new UnsafeNativeMethods.IRawElementProviderSimple[this.owner.Columns.
Count
];
376
for (int i = 0; i < this.owner.Columns.
Count
; i++)
396
column >= 0 && column < this.owner.Columns.
Count
)
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (1)
534
this.ColumnIndex < this.DataGridView.Columns.
Count
&&
winforms\Managed\System\WinForms\DataGridViewCell.cs (4)
2025
Debug.Assert(this.ColumnIndex < this.DataGridView.Columns.
Count
);
2168
Debug.Assert(this.ColumnIndex < this.DataGridView.Columns.
Count
);
2678
Debug.Assert(this.ColumnIndex < dataGridView.Columns.
Count
);
3466
if (this.DataGridView != null && e.ColumnIndex < this.DataGridView.Columns.
Count
&& e.RowIndex < this.DataGridView.Rows.Count)
winforms\Managed\System\WinForms\DataGridViewCellCollection.cs (2)
286
if (dataGridView != null && dataGridView.Columns.
Count
> index)
408
if (dataGridView != null && dataGridView.Columns.
Count
> index)
winforms\Managed\System\WinForms\DataGridViewCellPaintingEventArgs.cs (3)
196
if (this.columnIndex < -1 || this.columnIndex >= this.dataGridView.Columns.
Count
)
220
if (this.columnIndex < -1 || this.columnIndex >= this.dataGridView.Columns.
Count
)
249
if (this.columnIndex < -1 || this.columnIndex >= this.dataGridView.Columns.
Count
)
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (2)
965
this.ColumnIndex < this.DataGridView.Columns.
Count
&&
1084
Debug.Assert((position.X >= 0) && (position.X < this.DataGridView.Columns.
Count
));
winforms\Managed\System\WinForms\DataGridViewColumn.cs (1)
378
if (value >= this.DataGridView.Columns.
Count
)
winforms\Managed\System\WinForms\DataGridViewColumnCollection.cs (5)
400
if (this.
Count
> 0)
412
for (int columnIndex = 0; columnIndex < this.
Count
; columnIndex++)
614
this.lastAccessedSortedIndex < this.
Count
);
1157
if (index < 0 || index >= this.
Count
)
1183
Debug.Assert(index >= 0 && index < this.
Count
);
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (7)
319
for (int i = 0; i < this.owner.Columns.
Count
; i++)
335
for (int i = 0; i < this.owner.Columns.
Count
; i++)
535
if (this.owner.Columns.
Count
> 0)
717
for (int columnIndex = 0; columnIndex < this.owner.Columns.
Count
; columnIndex++)
763
if (this.owner.Columns.
Count
== 0)
1303
if (this.owner.Columns.
Count
== 0)
1370
(columnIndex < this.owner.Columns.
Count
&& rowIndex < this.owner.Rows.Count &&
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
838
this.ColumnIndex < this.DataGridView.Columns.
Count
&&
winforms\Managed\System\WinForms\DataGridViewMethods.cs (168)
38
if (cellAddress.X < 0 || cellAddress.X >= this.Columns.
Count
)
82
Debug.Assert(this.Columns.
Count
> 0);
377
Debug.Assert(columnIndex >= -1 && columnIndex < this.Columns.
Count
);
918
autoFillColumns = new ArrayList(this.Columns.
Count
);
1370
if (this.Columns.
Count
== 0 && this.Rows.Count == 0)
1387
allCellsSelected = this.individualSelectedCells.Count == this.Columns.
Count
* this.Rows.Count;
1418
allCellsSelected = this.selectedBandIndexes.Count * this.Rows.Count + this.individualSelectedCells.Count == this.Columns.
Count
* this.Rows.Count;
1451
allCellsSelected = this.selectedBandIndexes.Count * this.Columns.
Count
+ this.individualSelectedCells.Count == this.Columns.
Count
* this.Rows.Count;
1503
DataGridViewColumn[] clonedColumns = new DataGridViewColumn[dataGridViewCols.
Count
];
1520
for (i = 0; i < dataGridViewCols.
Count
; i++)
1543
while (i < dataGridViewCols.
Count
)
1694
if (columnIndex < 0 || columnIndex >= this.Columns.
Count
)
1752
int columnsCount = this.Columns.
Count
;
1790
if (columnIndex < -1 || columnIndex >= this.Columns.
Count
)
1825
int columnsCount = this.Columns.
Count
;
1867
Debug.Assert(columnIndex >= 0 && columnIndex < this.Columns.
Count
);
1931
for (int columnIndex = 0; columnIndex < this.Columns.
Count
; columnIndex++)
2615
Debug.Assert(this.ptCurrentCell.X >= 0 && this.ptCurrentCell.X < this.Columns.
Count
);
3169
if (this.Columns.
Count
> oldCurrentCellX && this.Columns[oldCurrentCellX].Visible)
3507
if (columnIndexException < 0 || columnIndexException >= this.Columns.
Count
)
3517
if (columnIndexException < -1 || columnIndexException >= this.Columns.
Count
)
3638
Debug.Assert(columnIndex >= 0 && columnIndex < this.Columns.
Count
, "Invalid columnIndex: " + columnIndex );
4130
Debug.Assert(columnIndex < this.Columns.
Count
);
4163
int cellsInCollection = dataGridViewRow.Cells.
Count
;
4164
if (this.Columns.
Count
> cellsInCollection)
4167
DataGridViewCell[] cells = new DataGridViewCell[this.Columns.
Count
- cellsInCollection];
4168
for (int columnIndex = cellsInCollection; columnIndex < this.Columns.
Count
; columnIndex++)
4978
Debug.Assert(dataGridViewColumn.DisplayIndex < this.Columns.
Count
);
5010
Debug.Assert(anticipatedColumnIndex >= 0 && anticipatedColumnIndex <= this.Columns.
Count
);
5013
if (dataGridViewColumn.DisplayIndex == -1 || dataGridViewColumn.DisplayIndex > this.Columns.
Count
)
5019
Debug.Assert(dataGridViewColumn.DisplayIndex >= 0 && dataGridViewColumn.DisplayIndex <= this.Columns.
Count
);
5044
while (displayIndex < this.Columns.
Count
&& (dataGridViewColumnNext == null || !dataGridViewColumnNext.Visible));
5151
int colCount = this.Columns.
Count
, displayIndex;
5196
for (int columnIndex = dataGridViewColumn.Index; columnIndex < this.Columns.
Count
; columnIndex++)
5207
for (int columnIndex = dataGridViewColumn.Index + insertionCount; columnIndex < this.Columns.
Count
; columnIndex++)
5590
for (int i = 0; i < this.Columns.
Count
; i ++)
5856
if (dgvcme.ColumnIndex < this.Columns.
Count
&&
5867
dgvcme.ColumnIndex < this.Columns.
Count
&&
5880
if (dgvcme.ColumnIndex < this.Columns.
Count
&& dgvcme.RowIndex < this.Rows.Count)
5919
dgvcme.ColumnIndex < this.Columns.
Count
&&
5928
dgvcme.ColumnIndex < this.Columns.
Count
&&
5936
if (dgvcme.ColumnIndex < this.Columns.
Count
&&
5944
if (dgvcme.ColumnIndex < this.Columns.
Count
&&
5952
if (dgvcme.ColumnIndex < this.Columns.
Count
&&
6719
columnIndexTmp < this.Columns.
Count
&&
6740
columnIndexTmp < this.Columns.
Count
&&
6761
dataGridViewColumnTmp = this.Columns[this.Columns.
Count
- 1];
6942
return cellCount + this.selectedBandIndexes.Count * this.Columns.
Count
;
7007
return this.Rows.Count * this.Columns.
Count
;
7101
if (columnIndex >= this.Columns.
Count
)
7181
Debug.Assert(columnIndex >= -1 && columnIndex < this.Columns.
Count
);
8246
if (columnIndex < 0 || columnIndex >= this.Columns.
Count
)
8255
Debug.Assert(columnIndex >= 0 && columnIndex < this.Columns.
Count
);
8525
Debug.Assert(index < this.Columns.
Count
);
9955
if (columnIndex < -1 || columnIndex >= this.Columns.
Count
)
9984
if (columnIndex < 0 || columnIndex >= this.Columns.
Count
)
9993
Debug.Assert(columnIndex >= 0 && columnIndex < this.Columns.
Count
);
10213
return columnIndex >= this.Columns.
Count
|| columnIndex == -1;
10218
return columnIndex >= this.Columns.
Count
|| rowIndex >= this.Rows.Count || columnIndex == -1 || rowIndex == -1;
10693
Debug.Assert(this.ptCurrentCell.X >= 0 && this.ptCurrentCell.X < this.Columns.
Count
);
10712
Debug.Assert(dataGridViewColumn.Index < this.Columns.
Count
);
10715
if (dataGridViewColumn.DisplayIndex == -1 || dataGridViewColumn.DisplayIndex >= this.Columns.
Count
)
10939
CorrectColumnFrozenState(dataGridViewColumn, this.Columns.
Count
);
10956
int newColumnCount = this.Columns.
Count
+ 1;
10963
if (dataGridViewRow.Cells.
Count
< newColumnCount)
10982
if (dataGridViewRow.Cells.
Count
== newColumnCount)
10988
Debug.Assert(dataGridViewRow.Cells.
Count
< newColumnCount);
11093
int previousColumnCount = this.Columns.
Count
;
11105
if (dataGridViewRow.Cells.
Count
< previousColumnCount + addedColumnCount)
11125
while (dataGridViewRow.Cells.
Count
> previousColumnCount)
11127
dataGridViewRow.Cells.RemoveAtInternal(dataGridViewRow.Cells.
Count
- 1);
11195
if (dataGridViewRow.Cells.
Count
> this.Columns.
Count
)
11426
if (previousModes.Length != this.Columns.
Count
)
11724
if (e.ColumnIndex >= this.Columns.
Count
)
11761
if (e.ColumnIndex >= this.Columns.
Count
)
11847
if (e.ColumnIndex >= this.Columns.
Count
)
11883
if (e.ColumnIndex >= this.Columns.
Count
)
11920
if (e.ColumnIndex >= this.Columns.
Count
)
11946
if (e.ColumnIndex >= this.Columns.
Count
)
11965
if (e.ColumnIndex >= this.Columns.
Count
)
11996
if (e.ColumnIndex >= this.Columns.
Count
)
12022
Debug.Assert(rowIndex < this.Rows.Count && columnIndex < this.Columns.
Count
);
12032
if (e.ColumnIndex >= this.Columns.
Count
)
12069
if (e.ColumnIndex >= this.Columns.
Count
)
12099
if (e.ColumnIndex >= this.Columns.
Count
)
12129
if (e.ColumnIndex >= this.Columns.
Count
)
12155
Debug.Assert(rowIndex < this.Rows.Count && columnIndex < this.Columns.
Count
);
12165
if (e.ColumnIndex >= this.Columns.
Count
)
12194
if (e.ColumnIndex >= this.Columns.
Count
)
12226
if (e.ColumnIndex >= this.Columns.
Count
)
12258
if (e.ColumnIndex >= this.Columns.
Count
)
12459
if (hti.col >= this.Columns.
Count
)
12920
if (e.ColumnIndex >= this.Columns.
Count
)
12954
if (e.ColumnIndex >= this.Columns.
Count
)
12988
if (e.ColumnIndex >= this.Columns.
Count
)
13022
this.ptMouseDownCell.X < this.Columns.
Count
)
13056
if (e.ColumnIndex >= this.Columns.
Count
)
13087
if (e.ColumnIndex >= this.Columns.
Count
)
13116
if (e.ColumnIndex >= this.Columns.
Count
)
13214
if (e.ColumnIndex >= this.Columns.
Count
)
13400
if (e.ColumnIndex >= this.Columns.
Count
)
13426
if (e.ColumnIndex >= this.Columns.
Count
)
13452
Debug.Assert(rowIndex < this.Rows.Count && columnIndex < this.Columns.
Count
);
13462
if (e.ColumnIndex >= this.Columns.
Count
)
13504
Debug.Assert(rowIndex < this.Rows.Count && columnIndex < this.Columns.
Count
);
13515
if (e.ColumnIndex >= this.Columns.
Count
)
13553
if (e.ColumnIndex >= this.Columns.
Count
)
13582
if (e.ColumnIndex < 0 || e.ColumnIndex >= this.Columns.
Count
)
13613
if (e.ColumnIndex < 0 || e.ColumnIndex >= this.Columns.
Count
)
13723
for (int i = 0; i < this.Columns.
Count
; i++)
13738
if (this.Columns.
Count
!= 0 && this.Rows.Count == 0)
13936
if (!e.Handled && e.Button == MouseButtons.Left && e.ColumnIndex < this.Columns.
Count
)
14003
Debug.Assert(columnIndex >= 0 && columnIndex < this.Columns.
Count
);
15920
int newColumnCount = this.Columns.
Count
+ 1;
15927
if (dataGridViewRow.Cells.
Count
< newColumnCount)
15947
if (dataGridViewRow.Cells.
Count
== newColumnCount)
15953
Debug.Assert(dataGridViewRow.Cells.
Count
< newColumnCount);
16352
if (dgvcme.ColumnIndex < this.Columns.
Count
&& dgvcme.RowIndex < this.Rows.Count)
16373
if (dgvcme.ColumnIndex < this.Columns.
Count
&& dgvcme.RowIndex < this.Rows.Count)
16383
if (dgvcme.ColumnIndex < this.Columns.
Count
&& dgvcme.RowIndex < this.Rows.Count)
16438
if (dgvcme.ColumnIndex < this.Columns.
Count
&& dgvcme.RowIndex < this.Rows.Count)
16449
if (columnIndex < this.Columns.
Count
)
16474
if (dgvcme.ColumnIndex < this.Columns.
Count
&& dgvcme.RowIndex < this.Rows.Count)
16585
if (this.ptMouseEnteredCell.X >= -1 && this.ptMouseEnteredCell.X < this.Columns.
Count
&&
16825
if (dgvcme.ColumnIndex < this.Columns.
Count
&& dgvcme.RowIndex < this.Rows.Count)
17475
Debug.Assert(dataGridViewColumn.Index >= 0 && dataGridViewColumn.Index < this.Columns.
Count
);
17555
if (this.Columns.
Count
== 1)
17562
int newColumnCount = this.Columns.
Count
- 1;
17567
if (dataGridViewRow.Cells.
Count
> newColumnCount)
17590
for (int i = 0; i < this.Columns.
Count
; i ++)
17968
this.Columns.
Count
!= 0 &&
18121
columnIndex < this.Columns.
Count
)
18187
Debug.Assert(rowIndex < this.Rows.Count && columnIndex < this.Columns.
Count
);
18823
if (rowIndex < this.Rows.Count && columnIndex < this.Columns.
Count
)
18835
Debug.Assert(rowIndex < this.Rows.Count && columnIndex < this.Columns.
Count
);
19270
if (dataGridViewCell != null && rowIndex < this.Rows.Count && columnIndex < this.Columns.
Count
)
19318
Debug.Assert(rowIndex < this.Rows.Count && columnIndex < this.Columns.
Count
);
19506
for (int i = 0; i < this.Columns.
Count
; i ++)
19793
if (this.Columns.
Count
> 0)
20049
if (this.Columns.
Count
> 0 || this.Rows.Count > 0)
25495
if (this.Columns.
Count
> 0 && this.newRowIndex == -1)
25602
for (int j = 0; j < dataGridViewCols.
Count
; j ++)
25694
if (this.dataConnection != null && this.Columns.
Count
> 0)
26124
Debug.Assert(columnIndex >= 0 && columnIndex < this.Columns.
Count
);
26309
Debug.Assert(columnIndex >= 0 && columnIndex < this.Columns.
Count
);
26310
Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingCol >= -1 && this.displayedBandsInfo.FirstDisplayedScrollingCol < this.Columns.
Count
);
26311
Debug.Assert(this.displayedBandsInfo.LastTotallyDisplayedScrollingCol >= -1 && this.displayedBandsInfo.LastTotallyDisplayedScrollingCol < this.Columns.
Count
);
26654
int maxColumnIndex = this.Columns.
Count
;
26689
int columnIndex = 0, maxColumnIndex = this.Columns.
Count
;
26776
if (index >= this.Columns.
Count
)
26778
index -= this.Columns.
Count
;
26832
columnIndex >= this.Columns.
Count
)
26864
columnIndex < this.Columns.
Count
&&
27023
if (oldCurrentCellX < this.Columns.
Count
&& oldCurrentCellY < this.Rows.Count)
27164
if (oldCurrentCellX < this.Columns.
Count
&& oldCurrentCellY < this.Rows.Count)
27487
columnIndex < this.Columns.
Count
&&
27540
for (int column = columnIndex+1; column < this.Columns.
Count
; column++)
27558
Debug.Assert(columnIndex >= 0 && columnIndex < this.Columns.
Count
);
27633
if (columnIndex < 0 || columnIndex >= this.Columns.
Count
)
27705
if (this.Columns.
Count
> DATAGRIDVIEW_bulkPaintThreshold)
27721
for (int column = columnIndex+1; column < this.Columns.
Count
; column++)
27953
if (columnIndex < 0 || columnIndex >= this.Columns.
Count
)
28906
if (columnIndex < -1 || columnIndex >= this.Columns.
Count
)
28923
if (columnIndex < 0 || columnIndex >= this.Columns.
Count
)
29211
this.ptMouseEnteredCell.X < this.Columns.
Count
&&
29235
this.ptMouseEnteredCell.X < this.Columns.
Count
&&
winforms\Managed\System\WinForms\DataGridViewRow.cs (7)
1153
int cellsCount = rowTemplate.Cells.
Count
;
1227
Debug.Assert(this.Cells.
Count
== dataGridView.Columns.
Count
);
1876
int cellCount = cells.
Count
;
1877
for (int columnIndex=0; columnIndex < cells.
Count
; columnIndex++)
2095
for (int i = 0; i < this.owner.Cells.
Count
; i ++)
2327
if (this.owner.Cells.
Count
> 0)
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (37)
342
if (this.DataGridView.Columns.
Count
== 0)
347
if (this.DataGridView.RowTemplate.Cells.
Count
> this.DataGridView.Columns.
Count
)
353
Debug.Assert(dataGridViewRow.Cells.
Count
== this.DataGridView.Columns.
Count
);
466
if (this.DataGridView.Columns.
Count
== 0)
495
if (this.DataGridView.Columns.
Count
== 0)
510
if (this.DataGridView.RowTemplate.Cells.
Count
> this.DataGridView.Columns.
Count
)
516
Debug.Assert(rowTemplate.Cells.
Count
== this.DataGridView.Columns.
Count
);
558
if (this.DataGridView.Columns.
Count
== 0)
562
if (dataGridViewRow.Cells.
Count
> this.DataGridView.Columns.
Count
)
582
Debug.Assert(dataGridViewRow.Cells.
Count
== this.DataGridView.Columns.
Count
);
883
if (this.DataGridView.Columns.
Count
== 0)
895
Debug.Assert(dataGridViewRow.Cells.
Count
== this.DataGridView.Columns.
Count
);
977
this.DataGridView.Columns.
Count
!= 0 &&
1541
if (this.DataGridView.Columns.
Count
== 0)
1546
if (this.DataGridView.RowTemplate.Cells.
Count
> this.DataGridView.Columns.
Count
)
1559
Debug.Assert(rowTemplate.Cells.
Count
== this.DataGridView.Columns.
Count
);
1605
if (this.DataGridView.Columns.
Count
== 0)
1610
if (dataGridViewRow.Cells.
Count
> this.DataGridView.Columns.
Count
)
1637
if (this.DataGridView.Columns.
Count
== 0)
1641
if (dataGridViewRow.Cells.
Count
> this.DataGridView.Columns.
Count
)
1647
Debug.Assert(dataGridViewRow.Cells.
Count
== this.DataGridView.Columns.
Count
);
1910
if (this.DataGridView.Columns.
Count
== 0)
1923
Debug.Assert(dataGridViewRow.Cells.
Count
== this.DataGridView.Columns.
Count
);
2503
int columnCount = this.DataGridView.Columns.
Count
;