Base:
property
Count
System.Windows.Forms.BaseCollection.Count
29 references to Count
System.Windows.Forms (13)
System\Windows\Forms\Control.cs (1)
10826for (int i = 0; i < DataBindings.Count; i++)
System\Windows\Forms\DataBinding\BindableComponent.cs (1)
61for (int i = 0; i < DataBindings.Count; i++)
System\Windows\Forms\DataBinding\BindingContext.cs (1)
300for (int i = 0; i < bindingManagerBase.Bindings.Count; i++)
System\Windows\Forms\DataBinding\BindingManagerBase.cs (2)
246int numLinks = Bindings.Count; 270int numLinks = Bindings.Count;
System\Windows\Forms\DataBinding\BindingsCollection.cs (1)
116protected internal bool ShouldSerializeMyAll() => Count > 0;
System\Windows\Forms\DataBinding\ControlBindingsCollection.cs (2)
193for (int i = 0; i < Count; i++) 213int numLinks = Count;
System\Windows\Forms\DataBinding\CurrencyManager.cs (1)
1023int numLinks = Bindings.Count;
System\Windows\Forms\DataBinding\ListManagerBindingsCollection.cs (1)
46int numLinks = Count;
System\Windows\Forms\DataBinding\PropertyManager.cs (1)
148for (int i = 0; i < Bindings.Count; i++)
System\Windows\Forms\ErrorProvider\ErrorProvider.cs (2)
421int bindingsCount = errBindings.Count; 463int bindingsCount = errBindings.Count;
System.Windows.Forms.Design (5)
System\Windows\Forms\Design\ControlDesigner.cs (5)
535Debug.Assert(ctl.DataBindings.Count > 0, "we should not be notified if the control has no dataBindings"); 537for (int i = 0; i < ctl.DataBindings.Count; i++) 552if (ctl.DataBindings.Count == 0) 1044if (ctl.DataBindings.Count == 0 && _removalNotificationHooked) 1054else if (ctl.DataBindings.Count > 0 && !_removalNotificationHooked)
System.Windows.Forms.Tests (11)
System\Windows\Forms\BindingsCollectionTests.cs (9)
16Assert.Equal(0, collection.Count); 28Assert.Equal(1, collection.Count); 63Assert.Equal(1, collection.Count); 69Assert.Equal(2, collection.Count); 77Assert.Equal(3, collection.Count); 94Assert.Equal(1, collection.Count); 129Assert.Equal(1, collection.Count); 135Assert.Equal(2, collection.Count); 143Assert.Equal(3, collection.Count);
System\Windows\Forms\ControlBindingsCollectionTests.cs (2)
80Assert.Equal(4, collection.Count); 113Assert.Equal(5, collection.Count);