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