1 write to owner
System.Windows.Forms (1)
winforms\Managed\System\WinForms\Menu.cs (1)
692
this.
owner
= owner;
50 references to owner
System.Windows.Forms (50)
winforms\Managed\System\WinForms\Menu.cs (50)
701
if (index < 0 || index >=
owner
.ItemCount)
703
return
owner
.items[index];
748
return
owner
.ItemCount;
826
return Add(
owner
.ItemCount, item);
843
if (
owner
is MenuItem) {
844
MenuItem parent = (MenuItem)
owner
;
859
if (item.Menu.Equals(
owner
) && index > 0) {
867
if (index < 0 || index >
owner
.ItemCount) {
871
if (
owner
.items == null ||
owner
.items.Length ==
owner
.ItemCount) {
872
MenuItem[] newItems = new MenuItem[
owner
.ItemCount < 2? 4:
owner
.ItemCount * 2];
873
if (
owner
.ItemCount > 0) System.Array.Copy(
owner
.items, 0, newItems, 0,
owner
.ItemCount);
874
owner
.items = newItems;
876
System.Array.Copy(
owner
.items, index,
owner
.items, index + 1,
owner
.ItemCount - index);
877
owner
.items[index] = item;
878
owner
._itemCount++;
879
item.Menu =
owner
;
880
owner
.ItemsChanged(CHANGE_ITEMS);
881
if (
owner
is MenuItem) {
882
((MenuItem)
owner
).ItemsChanged(CHANGE_ITEMADDED, item);
1084
if (
owner
.ItemCount > 0) {
1086
for (int i = 0; i <
owner
.ItemCount; i++) {
1087
owner
.items[i].Menu = null;
1090
owner
._itemCount = 0;
1091
owner
.items = null;
1093
owner
.ItemsChanged(CHANGE_ITEMS);
1095
if (
owner
is MenuItem) {
1096
((MenuItem)(
owner
)).UpdateMenuItem(true);
1106
if (
owner
.ItemCount > 0) {
1107
System.Array.Copy(
owner
.items, 0, dest, index,
owner
.ItemCount);
1116
return new WindowsFormsUtils.ArraySubsetEnumerator(
owner
.items,
owner
.ItemCount);
1125
if (index < 0 || index >=
owner
.ItemCount) {
1129
MenuItem item =
owner
.items[index];
1131
owner
._itemCount--;
1132
System.Array.Copy(
owner
.items, index + 1,
owner
.items, index,
owner
.ItemCount - index);
1133
owner
.items[
owner
.ItemCount] = null;
1134
owner
.ItemsChanged(CHANGE_ITEMS);
1138
if (
owner
.ItemCount == 0) {
1161
if (item.Menu ==
owner
) {