3 writes to _itemsCollection
System.Windows.Forms (3)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (3)
627
_itemsCollection
??= CreateItemCollection();
1813
_itemsCollection
= null;
1974
_itemsCollection
= null;
29 references to _itemsCollection
System.Windows.Forms (29)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (29)
629
return
_itemsCollection
;
724
if (
_itemsCollection
is not null)
726
int count =
_itemsCollection
.Count;
738
if (
_itemsCollection
is not null)
740
int count =
_itemsCollection
.Count;
842
if (
_itemsCollection
is not null && SelectedItems.Count > 0)
852
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(value,
_itemsCollection
?.Count ?? 0);
950
if (
_itemsCollection
is not null)
954
int index =
_itemsCollection
.IndexOf(value);
1043
if (_sorted &&
_itemsCollection
is not null &&
_itemsCollection
.Count >= 1)
1326
int itemCount = (
_itemsCollection
is null) ? 0 :
_itemsCollection
.Count;
1373
return FindStringInternal(s,
_itemsCollection
, startIndex, exact: false, ignoreCase: true);
1388
return FindStringInternal(s,
_itemsCollection
, startIndex, exact: true, ignoreCase: true);
1411
int itemCount = (
_itemsCollection
is null) ? 0 :
_itemsCollection
.Count;
1490
if (
_itemsCollection
is not null && SelectedItems.GetSelected(index))
1776
if (
_itemsCollection
is not null)
1778
int count =
_itemsCollection
.Count;
1782
NativeAdd(
_itemsCollection
[i]);
1971
ObjectCollection? savedItems =
_itemsCollection
;
2144
int itemCount = (
_itemsCollection
is null) ? 0 :
_itemsCollection
.Count;
2183
if (_sorted &&
_itemsCollection
is not null)
2185
_itemsCollection
.InnerArray.Sort();
2192
int count =
_itemsCollection
.Count;
2195
NativeAdd(
_itemsCollection
[i]);
2211
if (
_itemsCollection
is not null)