1 type derived from ContextMenuStrip
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\GroupedContextMenuStrip.cs (1)
9internal class GroupedContextMenuStrip : ContextMenuStrip
108 instantiations of ContextMenuStrip
Accessibility_Core_App (2)
Menu_Toolbars_controls.Designer.cs (1)
37contextMenuStrip1 = new ContextMenuStrip(components);
ToolStripContainer.Designer.cs (1)
35this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
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();
System.Windows.Forms.Tests (102)
ContextMenuStripTests.cs (3)
14using ContextMenuStrip cms = new(); 27ArgumentNullException ex = Assert.Throws<ArgumentNullException>(() => new ContextMenuStrip(nullContainer)); 30using ContextMenuStrip cms = new(mockContainer.Object);
System\Windows\Forms\AccessibleObjects\ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObjectTests.cs (2)
289using ContextMenuStrip contextMenu = new(); 323using ContextMenuStrip contextMenu = new();
System\Windows\Forms\ControlTests.Methods.cs (2)
12576using ContextMenuStrip menu = new(); 12648using ContextMenuStrip menu = new();
System\Windows\Forms\ControlTests.Properties.cs (7)
3531yield return new object[] { new ContextMenuStrip() }; 3555ContextMenuStrip oldValue = new(); 3573using ContextMenuStrip menu = new(); 3587using ContextMenuStrip menu1 = new(); 3588using ContextMenuStrip menu2 = new(); 3616using ContextMenuStrip menu1 = new(); 3627using ContextMenuStrip menu2 = new();
System\Windows\Forms\DataGridViewCellContextMenuStripNeededEventArgsTests.cs (1)
36yield return new object[] { new ContextMenuStrip() };
System\Windows\Forms\DataGridViewCellTests.cs (24)
109yield return new object[] { new ContextMenuStrip() }; 158using ContextMenuStrip menu1 = new(); 159using ContextMenuStrip menu2 = new(); 192using ContextMenuStrip menu1 = new(); 193using ContextMenuStrip menu2 = new(); 319using ContextMenuStrip menu1 = new(); 330using ContextMenuStrip menu2 = new(); 351using ContextMenuStrip menu = new(); 364using ContextMenuStrip menu1 = new(); 368using ContextMenuStrip menu2 = new(); 3316using ContextMenuStrip menu = new(); 3499using ContextMenuStrip menu = new(); 3536using ContextMenuStrip menu = new(); 4188using ContextMenuStrip cellMenu = new(); 4199yield return new object[] { -2, new ContextMenuStrip() }; 4201yield return new object[] { -1, new ContextMenuStrip() }; 4203yield return new object[] { 0, new ContextMenuStrip() }; 4227using ContextMenuStrip cellMenu = new(); 4239yield return new object[] { new ContextMenuStrip() }; 4281using ContextMenuStrip cellMenu = new(); 4312using ContextMenuStrip menu1 = new(); 4313using ContextMenuStrip menu2 = new(); 4346using ContextMenuStrip menu1 = new(); 4347using ContextMenuStrip menu2 = new();
System\Windows\Forms\DataGridViewColumnTests.cs (7)
520yield return new object[] { new ContextMenuStrip() }; 542using ContextMenuStrip oldValue = new(); 581using ContextMenuStrip menu = new(); 595using ContextMenuStrip menu1 = new(); 596using ContextMenuStrip menu2 = new(); 630using ContextMenuStrip menu1 = new(); 641using ContextMenuStrip menu2 = new();
System\Windows\Forms\DataGridViewHeaderCellTests.cs (17)
2018using ContextMenuStrip menu = new(); 2104using ContextMenuStrip menu = new(); 2203using ContextMenuStrip cellMenu = new(); 2214yield return new object[] { -2, new ContextMenuStrip() }; 2216yield return new object[] { -1, new ContextMenuStrip() }; 2218yield return new object[] { 0, new ContextMenuStrip() }; 2242using ContextMenuStrip cellMenu = new(); 2254yield return new object[] { -2, new ContextMenuStrip() }; 2256yield return new object[] { -1, new ContextMenuStrip() }; 2258yield return new object[] { 0, new ContextMenuStrip() }; 2260yield return new object[] { 1, new ContextMenuStrip() }; 2302using ContextMenuStrip cellMenu = new(); 2337using ContextMenuStrip cellMenu = new(); 2371using ContextMenuStrip menu1 = new(); 2372using ContextMenuStrip menu2 = new(); 2405using ContextMenuStrip menu1 = new(); 2406using ContextMenuStrip menu2 = new();
System\Windows\Forms\DataGridViewRowContextMenuStripNeededEventArgsTests.cs (1)
29yield return new object[] { new ContextMenuStrip() };
System\Windows\Forms\DataGridViewRowTests.cs (22)
66using ContextMenuStrip menu1 = new(); 67using ContextMenuStrip menu2 = new(); 100using ContextMenuStrip menu1 = new(); 101using ContextMenuStrip menu2 = new(); 149yield return new object[] { new ContextMenuStrip() }; 171using ContextMenuStrip oldValue = new(); 230using ContextMenuStrip menu = new(); 244using ContextMenuStrip menu1 = new(); 245using ContextMenuStrip menu2 = new(); 278using ContextMenuStrip menu1 = new(); 289using ContextMenuStrip menu2 = new(); 3923using ContextMenuStrip menu = new(); 3963using ContextMenuStrip menu = new(); 4006using ContextMenuStrip menu = new(); 4172ContextMenuStrip = new ContextMenuStrip() 4258using ContextMenuStrip menu = new(); 4274using ContextMenuStrip menu1 = new(); 4277using ContextMenuStrip menu2 = new(); 4290using ContextMenuStrip menu1 = new(); 4291using ContextMenuStrip menu2 = new(); 4324using ContextMenuStrip menu1 = new(); 4325using ContextMenuStrip menu2 = new();
System\Windows\Forms\NotifyIconTests.cs (3)
141yield return new object[] { new ContextMenuStrip() }; 163using ContextMenuStrip menu = new(); 770using ContextMenuStrip contextMenuStrip = new();
System\Windows\Forms\ToolStripDropDownTests.cs (3)
1048yield return new object[] { new ContextMenuStrip() }; 1082using ContextMenuStrip menu1 = new(); 1093using ContextMenuStrip menu2 = new();
System\Windows\Forms\ToolStripItemCollectionTests.cs (1)
108using ContextMenuStrip contextMenuStrip = new();
System\Windows\Forms\UpDownBaseTests.cs (3)
871yield return new object[] { new ContextMenuStrip() }; 905using ContextMenuStrip menu1 = new(); 916using ContextMenuStrip menu2 = new();
System\Windows\Forms\WebBrowserTests.cs (2)
4545using ContextMenuStrip menu = new(); 4617using ContextMenuStrip menu = new();
TextBoxBaseTests.cs (2)
6999using ContextMenuStrip menu = new(); 7078using ContextMenuStrip menu = new();
ToolStripContainerTests.cs (2)
129using ContextMenuStrip contextMenuStrip = new(); 158_toolStripContainer.ContextMenuStrip = new ContextMenuStrip();
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
1008_contextMenuStrip = new ContextMenuStrip
WinFormsControlsTest (1)
DragDrop.cs (1)
430_catContextMenuStrip = new ContextMenuStrip
196 references to ContextMenuStrip
Accessibility_Core_App (2)
Menu_Toolbars_controls.Designer.cs (1)
616private ContextMenuStrip contextMenuStrip1;
ToolStripContainer.Designer.cs (1)
619private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
DesignSurface (2)
MainForm.cs (2)
176ContextMenuStrip cm1 = surface.CreateComponent<ContextMenuStrip>();
System.Windows.Forms (56)
System\Windows\Forms\ContextMenuStrip.cs (2)
46internal ContextMenuStrip Clone() 50ContextMenuStrip contextMenuStrip = new();
System\Windows\Forms\Control.cs (5)
1230public virtual ContextMenuStrip? ContextMenuStrip 1232get => Properties.GetValueOrDefault<ContextMenuStrip>(s_contextMenuStripProperty); 1235ContextMenuStrip? oldValue = Properties.AddOrRemoveValue(s_contextMenuStripProperty, value); 4699if (ContextMenuStrip is ContextMenuStrip menu) 11098if (!Properties.TryGetValue(s_contextMenuStripProperty, out ContextMenuStrip? contextMenuStrip))
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (5)
11688internal ContextMenuStrip? OnCellContextMenuStripNeeded(int columnIndex, int rowIndex, ContextMenuStrip? contextMenuStrip) 17595internal ContextMenuStrip? OnRowContextMenuStripNeeded(int rowIndex, ContextMenuStrip? contextMenuStrip) 29972ContextMenuStrip? 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); 770ContextMenuStrip? 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); 1137ContextMenuStrip? contextMenuStrip = ContextMenuStripInternal; 1417internal ContextMenuStrip? GetContextMenuStrip(int rowIndex) 1419ContextMenuStrip? contextMenuStrip = ContextMenuStripInternal; 1723public virtual ContextMenuStrip? GetInheritedContextMenuStrip(int rowIndex) 1738ContextMenuStrip? 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)
166public 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 1200public ContextMenuStrip? GetContextMenuStrip(int rowIndex) 1202ContextMenuStrip? 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)
817if (dropDown.GetFirstDropDown() is ContextMenuStrip topLevelContextMenu)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
863SupportsRightClick = (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)
3113ContextMenuStrip menu = treeNode.ContextMenuStrip; 3126ContextMenuStrip strip = (ContextMenuStrip)sender!;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
205public override ContextMenuStrip? ContextMenuStrip
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
1343ContextMenuStrip? 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 (15)
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)
49private ContextMenuStrip _toolStripContextMenu; 197private ContextMenuStrip DesignerContextMenu
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
77private ContextMenuStrip DesignerContextMenu 998else if (parentDropDown is ContextMenuStrip)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (2)
984if (selSvc.PrimarySelection is ContextMenuStrip) 1316if (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 2569else if (currentDropDown is ContextMenuStrip && !currentDropDown.Visible)
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
60private ContextMenuStrip? DesignerContextMenu
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
270private ContextMenuStrip DesignerContextMenu
System.Windows.Forms.Tests (119)
ContextMenuStripTests.cs (3)
14using ContextMenuStrip cms = new(); 24mockContainer.Setup(x => x.Add(It.IsAny<ContextMenuStrip>())).Verifiable(); 30using ContextMenuStrip cms = new(mockContainer.Object);
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (1)
1729=> control is not (ContextMenuStrip
System\Windows\Forms\AccessibleObjects\ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObjectTests.cs (2)
289using ContextMenuStrip contextMenu = new(); 323using ContextMenuStrip contextMenu = new();
System\Windows\Forms\ControlTests.Methods.cs (2)
12576using ContextMenuStrip menu = new(); 12648using ContextMenuStrip menu = new();
System\Windows\Forms\ControlTests.Properties.cs (8)
3536public void Control_ContextMenuStrip_Set_GetReturnsExpected(ContextMenuStrip value) 3553public void Control_ContextMenuStrip_SetWithCustomOldValue_GetReturnsExpected(ContextMenuStrip value) 3555ContextMenuStrip oldValue = new(); 3573using ContextMenuStrip menu = new(); 3587using ContextMenuStrip menu1 = new(); 3588using ContextMenuStrip menu2 = new(); 3616using ContextMenuStrip menu1 = new(); 3627using ContextMenuStrip menu2 = new();
System\Windows\Forms\DataGridViewCellContextMenuStripNeededEventArgsTests.cs (1)
41public void ContextMenuStrip_Set_GetReturnsExpected(ContextMenuStrip value)
System\Windows\Forms\DataGridViewCellTests.cs (31)
114public void DataGridViewCell_ContextMenuStrip_GetWithRow_ReturnsExpected(ContextMenuStrip menu) 127public void DataGridViewCell_ContextMenuStrip_GetWithColumn_ReturnsExpected(ContextMenuStrip menu) 140public void DataGridViewCell_ContextMenuStrip_GetWithDataGridView_ReturnsExpected(ContextMenuStrip menu) 158using ContextMenuStrip menu1 = new(); 159using ContextMenuStrip menu2 = new(); 192using ContextMenuStrip menu1 = new(); 193using ContextMenuStrip menu2 = new(); 228public void DataGridViewCell_ContextMenuStrip_Set_GetReturnsExpected(ContextMenuStrip value) 243public void DataGridViewCell_ContextMenuStrip_SetWithRow_GetReturnsExpected(ContextMenuStrip value) 259public void DataGridViewCell_ContextMenuStrip_SetWithColumn_GetReturnsExpected(ContextMenuStrip value) 275public void DataGridViewCell_ContextMenuStrip_SetWithDataGridView_GetReturnsExpected(ContextMenuStrip value) 319using ContextMenuStrip menu1 = new(); 330using ContextMenuStrip menu2 = new(); 351using ContextMenuStrip menu = new(); 364using ContextMenuStrip menu1 = new(); 368using ContextMenuStrip menu2 = new(); 3316using ContextMenuStrip menu = new(); 3499using ContextMenuStrip menu = new(); 3536using ContextMenuStrip menu = new(); 4188using ContextMenuStrip cellMenu = new(); 4208public void DataGridViewCell_GetInheritedContextMenuStrip_InvokeWithRow_ReturnsExpected(int rowIndex, ContextMenuStrip menu) 4221public void DataGridViewCell_GetInheritedContextMenuStrip_InvokeWithMenuWithRow_ReturnsExpected(int rowIndex, ContextMenuStrip menu) 4227using ContextMenuStrip cellMenu = new(); 4244public void DataGridViewCell_GetInheritedContextMenuStrip_InvokeWithDataGridView_ReturnsExpected(ContextMenuStrip menu) 4266public void DataGridViewCell_GetInheritedContextMenuStrip_InvokeWithMenuWithDataGridView_ReturnsExpected(ContextMenuStrip menu) 4281using ContextMenuStrip cellMenu = new(); 4290public void DataGridViewCell_GetInheritedContextMenuStrip_InvokeShared_ReturnsExpected(ContextMenuStrip menu) 4312using ContextMenuStrip menu1 = new(); 4313using ContextMenuStrip menu2 = new(); 4346using ContextMenuStrip menu1 = new(); 4347using ContextMenuStrip menu2 = new();
System\Windows\Forms\DataGridViewColumnTests.cs (9)
525public void DataGridViewColumn_ContextMenuStrip_Set_GetReturnsExpected(ContextMenuStrip value) 540public void DataGridViewColumn_ContextMenuStrip_SetWithCustomOldValue_GetReturnsExpected(ContextMenuStrip value) 542using ContextMenuStrip oldValue = new(); 558public void DataGridViewColumn_ContextMenuStrip_SetWithDataGridView_GetReturnsExpected(ContextMenuStrip value) 581using ContextMenuStrip menu = new(); 595using ContextMenuStrip menu1 = new(); 596using ContextMenuStrip menu2 = new(); 630using ContextMenuStrip menu1 = new(); 641using ContextMenuStrip menu2 = new();
System\Windows\Forms\DataGridViewHeaderCellTests.cs (17)
2018using ContextMenuStrip menu = new(); 2104using ContextMenuStrip menu = new(); 2203using ContextMenuStrip cellMenu = new(); 2223public void DataGridViewHeaderCell_GetInheritedContextMenuStrip_InvokeWithRow_ReturnsExpected(int rowIndex, ContextMenuStrip menu) 2236public void DataGridViewHeaderCell_GetInheritedContextMenuStrip_InvokeWithMenuWithRow_ReturnsExpected(int rowIndex, ContextMenuStrip menu) 2242using ContextMenuStrip cellMenu = new(); 2265public void DataGridViewHeaderCell_GetInheritedContextMenuStrip_InvokeWithDataGridView_ReturnsExpected(int rowIndex, ContextMenuStrip menu) 2287public void DataGridViewHeaderCell_GetInheritedContextMenuStrip_InvokeWithMenuWithDataGridView_ReturnsExpected(int rowIndex, ContextMenuStrip menu) 2302using ContextMenuStrip cellMenu = new(); 2311public void DataGridViewHeaderCell_GetInheritedContextMenuStrip_InvokeTopLeftHeaderCell_ReturnsExpected(int rowIndex, ContextMenuStrip menu) 2328public void DataGridViewHeaderCell_GetInheritedContextMenuStrip_InvokeTopLeftHeaderCellWithMenu_ReturnsExpected(int rowIndex, ContextMenuStrip menu) 2337using ContextMenuStrip cellMenu = new(); 2349public void DataGridViewHeaderCell_GetInheritedContextMenuStrip_InvokeShared_ReturnsExpected(int rowIndex, ContextMenuStrip menu) 2371using ContextMenuStrip menu1 = new(); 2372using ContextMenuStrip menu2 = new(); 2405using ContextMenuStrip menu1 = new(); 2406using ContextMenuStrip menu2 = new();
System\Windows\Forms\DataGridViewRowContextMenuStripNeededEventArgsTests.cs (1)
34public void ContextMenuStrip_Set_GetReturnsExpected(ContextMenuStrip value)
System\Windows\Forms\DataGridViewRowTests.cs (24)
66using ContextMenuStrip menu1 = new(); 67using ContextMenuStrip menu2 = new(); 100using ContextMenuStrip menu1 = new(); 101using ContextMenuStrip menu2 = new(); 154public void DataGridViewRow_ContextMenuStrip_Set_GetReturnsExpected(ContextMenuStrip value) 169public void DataGridViewRow_ContextMenuStrip_SetWithCustomOldValue_GetReturnsExpected(ContextMenuStrip value) 171using ContextMenuStrip oldValue = new(); 187public void DataGridViewRow_ContextMenuStrip_SetWithDataGridView_GetReturnsExpected(ContextMenuStrip value) 208public void DataGridViewRow_ContextMenuStrip_SetShared_GetReturnsExpected(ContextMenuStrip value) 230using ContextMenuStrip menu = new(); 244using ContextMenuStrip menu1 = new(); 245using ContextMenuStrip menu2 = new(); 278using ContextMenuStrip menu1 = new(); 289using ContextMenuStrip menu2 = new(); 3923using ContextMenuStrip menu = new(); 3963using ContextMenuStrip menu = new(); 4006using ContextMenuStrip menu = new(); 4258using ContextMenuStrip menu = new(); 4274using ContextMenuStrip menu1 = new(); 4277using ContextMenuStrip menu2 = new(); 4290using ContextMenuStrip menu1 = new(); 4291using ContextMenuStrip menu2 = new(); 4324using ContextMenuStrip menu1 = new(); 4325using ContextMenuStrip menu2 = new();
System\Windows\Forms\NotifyIconTests.cs (5)
146public void CollectionForm_ContextMenuStrip_Set_GetReturnsExpected(ContextMenuStrip value) 161public void CollectionForm_ContextMenuStrip_SetWithCustomOldValue_GetReturnsExpected(ContextMenuStrip value) 163using ContextMenuStrip menu = new(); 179public void CollectionForm_ContextMenuStrip_SetDisposed_GetReturnsExpected(ContextMenuStrip value) 770using ContextMenuStrip contextMenuStrip = new();
System\Windows\Forms\ToolStripDropDownTests.cs (3)
1053public void ToolStripDropDown_ContextMenuStrip_Set_GetReturnsExpected(ContextMenuStrip value) 1082using ContextMenuStrip menu1 = new(); 1093using ContextMenuStrip menu2 = new();
System\Windows\Forms\ToolStripItemCollectionTests.cs (1)
108using ContextMenuStrip contextMenuStrip = new();
System\Windows\Forms\TreeNodeTests.cs (3)
4660[InlineData(typeof(ContextMenuStrip))] 4665ContextMenuStrip = value as ContextMenuStrip 4668treeNode.ContextMenuStrip.Should().Be(value as ContextMenuStrip);
System\Windows\Forms\UpDownBaseTests.cs (3)
876public void UpDownBase_ContextMenuStrip_Set_GetReturnsExpected(ContextMenuStrip value) 905using ContextMenuStrip menu1 = new(); 916using ContextMenuStrip menu2 = new();
System\Windows\Forms\WebBrowserTests.cs (2)
4545using ContextMenuStrip menu = new(); 4617using ContextMenuStrip menu = new();
TextBoxBaseTests.cs (2)
6999using ContextMenuStrip menu = new(); 7078using ContextMenuStrip menu = new();
ToolStripContainerTests.cs (1)
129using ContextMenuStrip contextMenuStrip = new();
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
953private ContextMenuStrip? _contextMenuStrip;
WinFormsControlsTest (1)
DragDrop.cs (1)
24private ContextMenuStrip? _catContextMenuStrip;