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