Implemented interface member:
37 references to Count
System.Windows.Forms (21)
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (6)
465
int originalColumnCount = TableLayoutSettings.ColumnStyles.
Count
;
486
if (TableLayoutSettings.RowStyles.
Count
is > 1 or 0)
499
for (int i = DisplayedItems.Count; i < TableLayoutSettings.ColumnStyles.
Count
; i++)
512
int originalRowCount = TableLayoutSettings.RowStyles.
Count
;
535
if (TableLayoutSettings.ColumnStyles.
Count
is > 1 or 0)
548
for (int i = DisplayedItems.Count; i < TableLayoutSettings.RowStyles.
Count
; i++)
System\Windows\Forms\Layout\TableLayout.cs (14)
159
if (containerInfo.MaxColumns == 1 && containerInfo.ColumnStyles.
Count
> 0 && containerInfo.ColumnStyles[0].SizeType == SizeType.Absolute)
657
TableLayoutStyle? style = i < styles.
Count
? styles[i] : null;
763
if (i < styles.
Count
)
782
if (i < styles.
Count
)
927
if (lastPercent < styles.
Count
&& styles[lastPercent].SizeType == SizeType.Percent)
1001
(index < styles.
Count
) && styles[index].SizeType == SizeType.Absolute;
1026
if (i < styles.
Count
)
1096
SizeType sizeType = i < styles.
Count
? styles[i].SizeType : SizeType.AutoSize;
1120
SizeType sizeType = i < styles.
Count
? styles[i].SizeType : SizeType.AutoSize;
1154
SizeType sizeType = i < styles.
Count
? styles[i].SizeType : SizeType.AutoSize;
1487
Debug.Assert(containerInfo.ColumnStyles.
Count
>= layoutInfo1.ColumnStart + layoutInfo1.ColumnSpan, "length of column style too short");
1488
Debug.Assert(containerInfo.ColumnStyles.
Count
>= layoutInfo1.ColumnStart + layoutInfo2.ColumnSpan, "length of column style too short");
1504
Debug.Assert(containerInfo.RowStyles.
Count
>= layoutInfo1.RowStart + layoutInfo1.RowSpan, "length of row style too short");
1505
Debug.Assert(containerInfo.RowStyles.
Count
>= layoutInfo2.RowStart + layoutInfo2.RowSpan, "length of row style too short");
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutStyleCollection.cs (1)
150
for (int i = 0; i <
Count
; i++)
System.Windows.Forms.Design (12)
System\Windows\Forms\Design\StyleEditorForm.cs (8)
530
if (_tableLayoutPanel.ColumnStyles.
Count
> columnWidths.Length)
532
int diff = _tableLayoutPanel.ColumnStyles.
Count
- columnWidths.Length;
535
_tableLayoutPanel.ColumnStyles.RemoveAt(_tableLayoutPanel.ColumnStyles.
Count
- 1);
539
if (_tableLayoutPanel.RowStyles.
Count
> rowHeights.Length)
541
int diff = _tableLayoutPanel.RowStyles.
Count
- rowHeights.Length;
544
_tableLayoutPanel.RowStyles.RemoveAt(_tableLayoutPanel.RowStyles.
Count
- 1);
579
int styleCount = _isRowCollection ? _tableLayoutPanel.RowStyles.
Count
: _tableLayoutPanel.ColumnStyles.
Count
;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (4)
918
if (cw.Length > Table.ColumnStyles.
Count
)
920
int colDifference = cw.Length - Table.ColumnStyles.
Count
;
931
if (rh.Length > Table.RowStyles.
Count
)
933
int rowDifference = rh.Length - Table.RowStyles.
Count
;
System.Windows.Forms.Tests (4)
SerializableTypesTests.cs (2)
315
Assert.Equal(3, result.ColumnStyles.
Count
);
316
Assert.Equal(2, result.RowStyles.
Count
);
System\Windows\Forms\Layout\TableLayoutSettingsTypeConverterTests.cs (2)
47
Assert.Equal(5, settings.ColumnStyles.
Count
);
59
Assert.Equal(2, settings.RowStyles.
Count
);