3 writes to items
System.Windows.Forms (3)
winforms\Managed\System\WinForms\Menu.cs (3)
310
items
= null;
874
owner.
items
= newItems;
1091
owner.
items
= null;
43 references to items
System.Windows.Forms (43)
winforms\Managed\System\WinForms\Menu.cs (36)
102
return null !=
items
&& ItemCount > 0;
124
MenuItem item =
items
[i];
222
items
[i].ClearHandles();
237
if (menuSrc.
items
!= null) {
267
items
[i].CreateMenuItem();
280
items
[i].ClearHandles();
298
MenuItem item =
items
[--_itemCount];
334
MenuItem item =
items
[i];
358
if (
items
[iT].MergeOrder <= mergeOrder)
381
if (
items
[nLoop].MergeOrder > mergeOrder) {
385
else if (
items
[nLoop].MergeOrder < mergeOrder) {
390
else if (mergeOrder ==
items
[nLoop].MergeOrder) {
472
for (int i = 0; i <
items
.Length && !multipleMatches; ++i) {
473
int itemIndex = (startItem + i) %
items
.Length;
474
MenuItem mi =
items
[itemIndex];
513
if (menuSrc.
items
!= null &&
items
== null) {
518
item = menuSrc.
items
[i];
546
itemDst =
items
[j];
601
for (int i = 0; i <
items
.Length; ++i) {
602
MenuItem mi =
items
[i];
648
int startItem = (SelectedMenuItemIndex + 1) %
items
.Length;
703
return owner.
items
[index];
871
if (owner.
items
== null || owner.
items
.Length == owner.ItemCount) {
873
if (owner.ItemCount > 0) System.Array.Copy(owner.
items
, 0, newItems, 0, owner.ItemCount);
876
System.Array.Copy(owner.
items
, index, owner.
items
, index + 1, owner.ItemCount - index);
877
owner.
items
[index] = item;
1087
owner.
items
[i].Menu = null;
1107
System.Array.Copy(owner.
items
, 0, dest, index, owner.ItemCount);
1116
return new WindowsFormsUtils.ArraySubsetEnumerator(owner.
items
, owner.ItemCount);
1129
MenuItem item = owner.
items
[index];
1132
System.Array.Copy(owner.
items
, index + 1, owner.
items
, index, owner.ItemCount - index);
1133
owner.
items
[owner.ItemCount] = null;
winforms\Managed\System\WinForms\MenuItem.cs (5)
335
if (menu.
items
[i] == this) return i;
373
if (!(
items
[i].data.UserData is MdiListUserData)) {
1309
if (
items
[i].MdiList) {
1311
items
[i].UpdateMenuItem(true);
1327
items
[i].UpdateMenuItemIfDirty();
winforms\Managed\System\WinForms\RichTextBox.cs (2)
4041
if (menu.
items
[i].handle != IntPtr.Zero) {
4042
menu = menu.
items
[i];