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