2 writes to _menuItem
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (2)
286
_menuItem
= null;
391
_menuItem
= new ToolStripMenuItem
33 references to _menuItem
System.Windows.Forms.Design (33)
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (33)
86
get =>
_menuItem
;
131
if (
_menuItem
is not null && _designMenu is not null && value != RightToLeft)
137
_menuItem
.HideDropDown();
148
ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)_host.GetDesigner(
_menuItem
);
277
if (
_menuItem
is not null)
285
_menuItem
.Dispose();
294
if (
_menuItem
is null)
306
_menuItem
.DropDown.AutoClose = true;
307
_menuItem
.HideDropDown();
308
_menuItem
.Visible = false;
334
if (
_menuItem
is not null)
336
if (_host.GetDesigner(
_menuItem
) is ToolStripMenuItemDesigner itemDesigner)
339
itemDesigner.RemoveTypeHereNode(
_menuItem
);
396
_menuItem
.Text = (_dropDown is not null) ? _dropDown.GetType().Name :
_menuItem
.Name;
397
_designMenu.Items.Add(
_menuItem
);
403
_nestedContainer.Add(
_menuItem
, "ContextMenuStrip");
421
if (
_menuItem
is null)
439
if (currentItem ==
_menuItem
)
441
topmost =
_menuItem
.DropDown;
463
if (ownerItem is not null && ownerItem ==
_menuItem
)
465
topmost =
_menuItem
.DropDown;
481
if (topMostItem ==
_menuItem
)
509
if (Component is null ||
_menuItem
is null)
516
if (selectionService.GetComponentSelected(
_menuItem
))
643
if (
_menuItem
is null)
653
_menuItem
.Visible = true;
656
if (_currentParent is not null && _currentParent !=
_menuItem
)
665
_menuItem
.DropDown = _dropDown;
666
_menuItem
.DropDown.OwnerItem =
_menuItem
;
680
ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)_host.GetDesigner(
_menuItem
);
699
_dummyToolStripGlyph = new ControlBodyGlyph(r, Cursor.Current,
_menuItem
, new ContextMenuStripBehavior());