Implemented interface member:
property
Count
System.Collections.ICollection.Count
50 references to Count
System.Windows.Forms (45)
winforms\Managed\System\WinForms\CheckedListBox.cs (14)
338if ((items != null) && (items.Count > 0)) { 528if (index < 0 || index >= Items.Count) 575if (index < 0 || index >= Items.Count) 648if (e.Index < Items.Count) { 667if (e.Index < Items.Count) { 844if (Items.Count == 0 && AccessibilityImprovements.Level3 && 970for (int i =0; i < Items.Count ; i ++) 979for (int j =0; j < Items.Count; j++) 991if (index < 0 || index >= Items.Count) { 1095if (item < 0 || item >= Items.Count) { 1105if (item < 0 || item >= Items.Count || (state != LB_CHECKED && state != LB_UNCHECKED)) { 1329if (index >= 0 && index < owner.Items.Count) { 1580if (index >= 0 && index < CheckedListBox.Items.Count) { 1592return CheckedListBox.Items.Count;
winforms\Managed\System\WinForms\ListBox.cs (26)
745int cnt = itemsCollection.Count; 755int cnt = (itemsCollection == null || itemsCollection.Count == 0) ? 1 : itemsCollection.Count; 884int itemCount = (itemsCollection == null) ? 0 : itemsCollection.Count; 1069if (sorted && itemsCollection != null && itemsCollection.Count >= 1) { 1106int cnt = Items.Count; 1335if (index < 0 || index >= Items.Count) 1354string[] strings = new string[this.Items.Count]; 1356for (int i = 0; i < Items.Count; i ++) { 1372int itemCount = (itemsCollection == null) ? 0 : itemsCollection.Count; 1420int itemCount = (itemsCollection == null) ? 0 : itemsCollection.Count; 1454int itemCount = (itemsCollection == null) ? 0 : itemsCollection.Count; 1477int itemCount = (itemsCollection == null) ? 0 : itemsCollection.Count; 1689int cnt = Items.Count; 1787int count = itemsCollection.Count; 1951int cnt = Items.Count; 2000newItems = new object[savedItems.Count]; 2019int cnt = savedItems.Count; 2129int itemCount = (itemsCollection == null) ? 0: itemsCollection.Count; 2165int count = itemsCollection.Count; 2185s += ", Items.Count: " + Items.Count.ToString(CultureInfo.CurrentCulture); 2186if (Items.Count > 0) { 3061if (Count > 0) 3073Debug.Assert(index >= 0 && index <= Count, "Wrong index for insert"); 3095index = Count - 1; 3200int cnt = owner.Items.Count;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (5)
2525if (DropDownListBox.Items.Count == 0) { 3910bool resizable = DropDownListBox.Items.Count > (DropDownListBox.Height / DropDownListBox.ItemHeight); 5987if (lb.Items.Count == 0) { 6488if (index < 0 || index >= _owningGridViewListBox.Items.Count) { 6498return _owningGridViewListBox.Items.Count;
System.WorkflowServices (5)
System\Workflow\Activities\Design\OperationPickerDialog.cs (3)
133if (this.operationsListBox.Items.Count == 0) 313if (operationsListBox.Items.Count > 0) 364if (this.operationsListBox.Items.Count > 0 && this.operationsListBox.Items[0] is HelpListItem)
System\Workflow\Activities\Design\RichListBox.cs (2)
111if (Items.Count < 1) 152if (Items.Count == 0)