2 types derived from MenuStrip
System.Windows.Forms (2)
System\Windows\Forms\MDI\MDIControlStrip.cs (1)
12
internal partial class MdiControlStrip :
MenuStrip
System\Windows\Forms\MDI\MdiWindowListStrip.cs (1)
9
internal class MdiWindowListStrip :
MenuStrip
1 instantiation of MenuStrip
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
370
_designMenu = new
MenuStrip
53 references to MenuStrip
System.Windows.Forms (27)
src\winforms\src\Common\src\Obsoletions.cs (1)
36
internal const string MainMenuMessage = $"`{nameof(MainMenu)}` is provided for binary compatibility with .NET Framework and is not intended to be used directly from your code. Use `{nameof(
MenuStrip
)}` instead.";
System\Windows\Forms\Controls\Menus\MenuStrip.MenuStripAccessibleObject.cs (1)
13
public MenuStripAccessibleObject(
MenuStrip
owner)
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (1)
271
else if (e.ToolStrip is
MenuStrip
)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (5)
884
MenuStrip
? menuStripToActivate = null;
951
internal static
MenuStrip
? GetMainMenuStrip(Control control)
970
private static
MenuStrip
? GetFirstMenuStripRecursive(Control.ControlCollection controlsToLookIn)
983
if (controlsToLookIn[i] is
MenuStrip
menuStrip)
1000
MenuStrip
? menuStrip = GetFirstMenuStripRecursive(controlsToLookIn[i].Controls);
System\Windows\Forms\Controls\ToolStrips\ToolStripProfessionalLowResolutionRenderer.cs (1)
33
if (e.ToolStrip is
MenuStrip
)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (5)
129
else if (toolStrip is
MenuStrip
)
407
else if (toolStrip is
MenuStrip
)
495
int yOffset = (toolStrip is
MenuStrip
) ? 2 : 0;
835
if (toolStrip is ToolStripDropDown or
MenuStrip
or StatusStrip)
1219
bool drawCurve = RoundedEdges && (item?.GetCurrentParent() is not
MenuStrip
);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (1)
79
else if (ToolStrip is
MenuStrip
)
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemDarkModeRenderer.cs (1)
141
else if (toolStrip is
MenuStrip
)
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (1)
262
else if (toolStrip is
MenuStrip
)
System\Windows\Forms\Form.cs (6)
1255
public
MenuStrip
? MainMenuStrip
1257
get => Properties.GetValueOrDefault<
MenuStrip
>(s_propMainMenuStrip);
6183
MenuStrip
? mainMenuStrip = MainMenuStrip;
6249
Type[] stockTypes = [typeof(
MenuStrip
)];
6356
MenuStrip
? sourceMenuStrip = ToolStripManager.GetMainMenuStrip(this);
6381
MenuStrip
? sourceMenuStrip = ToolStripManager.GetMainMenuStrip(this);
System\Windows\Forms\MDI\MDIControlStrip.cs (1)
76
internal
MenuStrip
? MergedMenu { get; set; }
System\Windows\Forms\MDI\MdiWindowListItemConverter.cs (1)
20
if (context?.Instance is
MenuStrip
menu)
System\Windows\Forms\MDI\MdiWindowListStrip.cs (2)
13
private
MenuStrip
? _mergedMenu;
47
internal
MenuStrip
? MergedMenu
System.Windows.Forms.Design (26)
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (1)
271
|| item.GetType(host) == typeof(
MenuStrip
)
System\Windows\Forms\Design\StandardMenuStripVerb.cs (2)
48
if (_designer.Component is
MenuStrip
menuStrip)
66
private void CreateStandardMenuStrip(IDesignerHost host,
MenuStrip
tool)
System\Windows\Forms\Design\ToolStripDesigner.cs (11)
1482
MenuStrip
parentMenu = null;
1488
parentMenu = parentForm.Controls.OfType<
MenuStrip
>().FirstOrDefault();
1506
if (parentPanel is null || ToolStrip is
MenuStrip
)
1514
if (parentMenu is
MenuStrip
menuStrip)
1520
if (ToolStrip is
MenuStrip
)
1525
mainMenuStripProperty.SetValue(parentForm, ToolStrip as
MenuStrip
);
1532
if (ToolStrip is not
MenuStrip
)
1554
if (ToolStrip is
MenuStrip
)
1582
MenuStrip
menu = c as
MenuStrip
;
2421
if (ToolStrip is
MenuStrip
)
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (2)
194
if (toolStrip is
MenuStrip
)
219
else if (toolStrip is
MenuStrip
)
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
21
private
MenuStrip
_designMenu;
System\Windows\Forms\Design\ToolStripInSituService.cs (2)
106
if (c.GetCurrentParent() is
MenuStrip
tool)
133
else if (comp is
MenuStrip
)
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (2)
342
if (ParentTool is
MenuStrip
parent)
432
private void InsertIntoMainMenu(
MenuStrip
parent, Type t)
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
338
if (immediateParent is
MenuStrip
System\Windows\Forms\Design\ToolStripTemplateNode.cs (4)
415
if (parent is
MenuStrip
)
1450
if (currentItem is
MenuStrip
or ToolStripDropDownItem)
1694
else if (_currentItem is
MenuStrip
)
1806
if (_owner._component is
MenuStrip
or ToolStripDropDownItem)