1 type derived from ContextMenuStrip
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\GroupedContextMenuStrip.cs (1)
9internal class GroupedContextMenuStrip : ContextMenuStrip
2 instantiations of ContextMenuStrip
System.Windows.Forms (1)
System\Windows\Forms\ContextMenuStrip.cs (1)
50ContextMenuStrip contextMenuStrip = new();
System.Windows.Forms.Design (1)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
68ContextMenuStrip addDownMenu = new();
73 references to ContextMenuStrip
System.Windows.Forms (57)
src\winforms\src\Common\src\Obsoletions.cs (1)
34internal const string ContextMenuMessage = $"`{nameof(ContextMenu)}` is provided for binary compatibility with .NET Framework and is not intended to be used directly from your code. Use `{nameof(ContextMenuStrip)}` instead.";
System\Windows\Forms\ContextMenuStrip.cs (2)
46internal ContextMenuStrip Clone() 50ContextMenuStrip contextMenuStrip = new();
System\Windows\Forms\Control.cs (5)
1324public virtual ContextMenuStrip? ContextMenuStrip 1326get => Properties.GetValueOrDefault<ContextMenuStrip>(s_contextMenuStripProperty); 1329ContextMenuStrip? oldValue = Properties.AddOrRemoveValue(s_contextMenuStripProperty, value); 4786if (Properties?.TryGetValue(s_contextMenuStripProperty, out ContextMenuStrip? menu) == true) 11206if (!Properties.TryGetValue(s_contextMenuStripProperty, out ContextMenuStrip? contextMenuStrip))
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (5)
11682internal ContextMenuStrip? OnCellContextMenuStripNeeded(int columnIndex, int rowIndex, ContextMenuStrip? contextMenuStrip) 17586internal ContextMenuStrip? OnRowContextMenuStripNeeded(int rowIndex, ContextMenuStrip? contextMenuStrip) 29958ContextMenuStrip? contextMenuStrip;
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (5)
42public virtual ContextMenuStrip? ContextMenuStrip 56internal ContextMenuStrip? ContextMenuStripInternal 58get => Properties.GetValueOrDefault<ContextMenuStrip>(s_propContextMenuStrip); 61ContextMenuStrip? oldValue = Properties.AddOrRemoveValue(s_propContextMenuStrip, value); 756ContextMenuStrip? contextMenuStrip = ContextMenuStripInternal;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (9)
108public virtual ContextMenuStrip? ContextMenuStrip 114private ContextMenuStrip? ContextMenuStripInternal 116get => Properties.GetValueOrDefault<ContextMenuStrip>(s_propCellContextMenuStrip); 119ContextMenuStrip? oldValue = Properties.AddOrRemoveValue(s_propCellContextMenuStrip, value); 1129ContextMenuStrip? contextMenuStrip = ContextMenuStripInternal; 1406internal ContextMenuStrip? GetContextMenuStrip(int rowIndex) 1408ContextMenuStrip? contextMenuStrip = ContextMenuStripInternal; 1712public virtual ContextMenuStrip? GetInheritedContextMenuStrip(int rowIndex) 1727ContextMenuStrip? contextMenuStrip = GetContextMenuStrip(rowIndex);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellContextMenuStripNeededEventArgs.cs (2)
13internal DataGridViewCellContextMenuStripNeededEventArgs(int columnIndex, int rowIndex, ContextMenuStrip? contextMenuStrip) 19public ContextMenuStrip? ContextMenuStrip { get; set; }
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (1)
168public override ContextMenuStrip? ContextMenuStrip
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (2)
266public override ContextMenuStrip? GetInheritedContextMenuStrip(int rowIndex) 270ContextMenuStrip? contextMenuStrip = GetContextMenuStrip(-1);
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (2)
208public override ContextMenuStrip? GetInheritedContextMenuStrip(int rowIndex) 210ContextMenuStrip? contextMenuStrip = GetContextMenuStrip(rowIndex);
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (3)
58public override ContextMenuStrip? ContextMenuStrip 1204public ContextMenuStrip? GetContextMenuStrip(int rowIndex) 1206ContextMenuStrip? contextMenuStrip = ContextMenuStripInternal;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowContextMenuStripNeededEventArgs.cs (2)
15internal DataGridViewRowContextMenuStripNeededEventArgs(int rowIndex, ContextMenuStrip? contextMenuStrip) 23public ContextMenuStrip? ContextMenuStrip { get; set; }
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (2)
292public override ContextMenuStrip? GetInheritedContextMenuStrip(int rowIndex) 300ContextMenuStrip? contextMenuStrip = GetContextMenuStrip(rowIndex);
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (1)
197public new ContextMenuStrip? ContextMenuStrip
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
179public new ContextMenuStrip? ContextMenuStrip
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObject.cs (1)
28UIA_PROPERTY_ID.UIA_IsContentElementPropertyId => (VARIANT)this.TryGetOwnerAs(out ContextMenuStrip? _),
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
801if (dropDown.GetFirstDropDown() is ContextMenuStrip topLevelContextMenu)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
860SupportsRightClick = (dropDown.GetFirstDropDown() is ContextMenuStrip);
System\Windows\Forms\Controls\TreeView\TreeNode.cs (3)
52private ContextMenuStrip? _contextMenuStrip; 365/// The <see cref="Forms.ContextMenuStrip"/> associated with this tree node. This menu 371public virtual ContextMenuStrip? ContextMenuStrip
System\Windows\Forms\Controls\TreeView\TreeView.cs (3)
3100ContextMenuStrip menu = treeNode.ContextMenuStrip; 3113ContextMenuStrip strip = (ContextMenuStrip)sender!;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
201public override ContextMenuStrip? ContextMenuStrip
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
1339ContextMenuStrip? contextMenuStrip = ContextMenuStrip;
System\Windows\Forms\NotifyIcon.cs (2)
41private ContextMenuStrip? _contextMenuStrip; 183public ContextMenuStrip? ContextMenuStrip
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
154public override ContextMenuStrip? ContextMenuStrip
System.Windows.Forms.Design (16)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
68ContextMenuStrip addDownMenu = new();
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (1)
272if (sender is ContextMenuStrip cms)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
120private ContextMenuStrip DesignerContextMenuStrip
System\Windows\Forms\Design\ToolStripContentPanelDesigner.cs (1)
14private ContextMenuStrip? DesignerContextMenu
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
50private ContextMenuStrip _toolStripContextMenu; 194private ContextMenuStrip DesignerContextMenu
System\Windows\Forms\Design\ToolStripItemDesigner.cs (3)
77private ContextMenuStrip DesignerContextMenu 972needRefresh = GetFirstDropDown(currentSelection) is not null and not ContextMenuStrip; 974else if (parentDropDown is ContextMenuStrip)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (2)
972if (selSvc.PrimarySelection is ContextMenuStrip) 1304if (currentSelection is ContextMenuStrip contextMenu)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (3)
234if (mainStrip is not null && mainStrip.Site is not null && !(mainStrip is ContextMenuStrip)) 302else if (selectedItem is ContextMenuStrip menuStrip 2518else if (currentDropDown is ContextMenuStrip && !currentDropDown.Visible)
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
60private ContextMenuStrip? DesignerContextMenu
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
258private ContextMenuStrip DesignerContextMenu