2 writes to _menuItem
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (2)
280
_menuItem
= null;
385
_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
);
274
if (
_menuItem
is not null)
279
_menuItem
.Dispose();
288
if (
_menuItem
is null)
300
_menuItem
.DropDown.AutoClose = true;
301
_menuItem
.HideDropDown();
302
_menuItem
.Visible = false;
328
if (
_menuItem
is not null)
330
if (_host.GetDesigner(
_menuItem
) is ToolStripMenuItemDesigner itemDesigner)
333
itemDesigner.RemoveTypeHereNode(
_menuItem
);
390
_menuItem
.Text = (_dropDown is not null) ? _dropDown.GetType().Name :
_menuItem
.Name;
391
_designMenu.Items.Add(
_menuItem
);
397
_nestedContainer.Add(
_menuItem
, "ContextMenuStrip");
415
if (
_menuItem
is null)
433
if (currentItem ==
_menuItem
)
435
topmost =
_menuItem
.DropDown;
457
if (ownerItem is not null && ownerItem ==
_menuItem
)
459
topmost =
_menuItem
.DropDown;
475
if (topMostItem ==
_menuItem
)
503
if (Component is null ||
_menuItem
is null)
510
if (selectionService.GetComponentSelected(
_menuItem
))
637
if (
_menuItem
is null)
647
_menuItem
.Visible = true;
650
if (_currentParent is not null && _currentParent !=
_menuItem
)
659
_menuItem
.DropDown = _dropDown;
660
_menuItem
.DropDown.OwnerItem =
_menuItem
;
674
ToolStripMenuItemDesigner itemDesigner = (ToolStripMenuItemDesigner)_host.GetDesigner(
_menuItem
);
693
_dummyToolStripGlyph = new ControlBodyGlyph(r, Cursor.Current,
_menuItem
, new ContextMenuStripBehavior());