104 references to DesignerActionListCollection
DesignSurface (1)
CustomControls\CustomButtonDesigner.cs (1)
11_actionLists ??= new DesignerActionListCollection
System.Windows.Forms.Design (17)
System\ComponentModel\Design\DesignerActionService.cs (1)
86Add(comp, new DesignerActionListCollection([actionList]));
System\Windows\Forms\Design\Behavior\DesignerActionBehavior.cs (1)
61DesignerActionListCollection lists = new();
System\Windows\Forms\Design\ComboBoxDesigner.cs (1)
128_actionLists = new DesignerActionListCollection();
System\Windows\Forms\Design\DataGridViewDesigner.cs (1)
199_actionLists = new DesignerActionListCollection();
System\Windows\Forms\Design\ImageListDesigner.cs (1)
137_actionLists ??= new DesignerActionListCollection
System\Windows\Forms\Design\ListBoxDesigner.cs (1)
197_actionLists = new DesignerActionListCollection();
System\Windows\Forms\Design\ListViewDesigner.cs (1)
178_actionLists = new DesignerActionListCollection();
System\Windows\Forms\Design\MaskedTextBoxDesigner.cs (1)
32_actions = new DesignerActionListCollection();
System\Windows\Forms\Design\NotifyIconDesigner.cs (1)
24_actionLists ??= new DesignerActionListCollection
System\Windows\Forms\Design\PictureBoxDesigner.cs (1)
111_actionLists = new DesignerActionListCollection();
System\Windows\Forms\Design\RichTextBoxDesigner.cs (1)
44_actionLists = new DesignerActionListCollection();
System\Windows\Forms\Design\SplitContainerDesigner.cs (1)
43DesignerActionListCollection designerActionListCollection = new();
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
374_actionLists = new DesignerActionListCollection();
System\Windows\Forms\Design\TextBoxDesigner.cs (1)
25_actionLists = new DesignerActionListCollection();
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
69DesignerActionListCollection actionLists = new();
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
54DesignerActionListCollection actionLists = new();
System\Windows\Forms\Design\TreeViewDesigner.cs (1)
72public override DesignerActionListCollection ActionLists => _actionLists ??= new DesignerActionListCollection
System.Windows.Forms.Design.Tests (86)
System\ComponentModel\Design\DesignerActionListCollectionTests.cs (12)
13DesignerActionListCollection collection = new(); 40DesignerActionListCollection collection = new(); 65DesignerActionListCollection collection = new(); 78DesignerActionListCollection collection = new(); 90DesignerActionListCollection collection = new(); 98DesignerActionListCollection collection = new(); 122DesignerActionListCollection collection = new(); 142DesignerActionListCollection collection = new(); 168DesignerActionListCollection collection = new(); 180DesignerActionListCollection collection = new(); 191DesignerActionListCollection collection = new(); 202DesignerActionListCollection collection = new();
System\ComponentModel\Design\DesignerActionListsChangedEventArgsTests.cs (1)
13yield return new object[] { new(), DesignerActionListsChangedType.ActionListsAdded, new DesignerActionListCollection() };
System\ComponentModel\Design\DesignerActionServiceTests.cs (73)
47yield return new object[] { null, new DesignerActionListCollection() }; 48yield return new object[] { new DesignerActionList(null), new DesignerActionListCollection() }; 49yield return new object[] { new NullCustomDesignerActionList(null), new DesignerActionListCollection() }; 50yield return new object[] { actionList, new DesignerActionListCollection { actionList } }; 66DesignerActionListCollection actionListBuffer1 = new(); 70DesignerActionListCollection actionListBuffer2 = new(); 87Assert.Equal(new DesignerActionListCollection { actionList1, actionList2 }, service.GetComponentActions(component)); 88Assert.Equal(new DesignerActionListCollection { actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.All)); 89Assert.Equal(new DesignerActionListCollection { actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.Service)); 92DesignerActionListCollection actionListBuffer1 = new(); 96DesignerActionListCollection actionListBuffer2 = new(); 98Assert.Equal(new DesignerActionListCollection { actionList1, actionList2 }, actionListBuffer2); 115service.Add(component, new DesignerActionListCollection { actionList }); 122DesignerActionListCollection actionListBuffer1 = new(); 126DesignerActionListCollection actionListBuffer2 = new(); 138service.Add(component, new DesignerActionListCollection { actionList1 }); 139service.Add(component, new DesignerActionListCollection { actionList2 }); 140service.Add(component, new DesignerActionListCollection { null }); 143Assert.Equal(new DesignerActionListCollection { actionList1, actionList2 }, service.GetComponentActions(component)); 144Assert.Equal(new DesignerActionListCollection { actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.All)); 145Assert.Equal(new DesignerActionListCollection { actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.Service)); 148DesignerActionListCollection actionListBuffer1 = new(); 152DesignerActionListCollection actionListBuffer2 = new(); 154Assert.Equal(new DesignerActionListCollection { actionList1, actionList2 }, actionListBuffer2); 201service.Add(component2, new DesignerActionListCollection()); 224service.Add(component2, new DesignerActionListCollection()); 240service.Add(new Component(), new DesignerActionListCollection()); 394yield return new object[] { null, new DesignerActionListCollection() }; 397yield return new object[] { mockSite.Object, new DesignerActionListCollection() }; 404yield return new object[] { nullMockSite.Object, new DesignerActionListCollection() }; 411yield return new object[] { invalidMockSite.Object, new DesignerActionListCollection() }; 425yield return new object[] { nullCommandSetMockSite.Object, new DesignerActionListCollection() }; 430.Returns(new DesignerActionListCollection()); 439yield return new object[] { emptyCommandSetMockSite.Object, new DesignerActionListCollection() }; 444DesignerActionListCollection actionLists = new() { null, new DesignerActionList(null), new NullCustomDesignerActionList(null), actionList }; 458yield return new object[] { actionListsCommandSetMockSite.Object, new DesignerActionListCollection { actionList } }; 471DesignerActionListCollection actionListBuffer = new(); 484.Returns(new DesignerActionListCollection()); 499DesignerActionListCollection actionListBuffer = new(); 528.Returns(new DesignerActionListCollection()); 543DesignerActionListCollection actionListBuffer = new(); 584.Returns(new DesignerActionListCollection()); 599DesignerActionListCollection actionListBuffer = new(); 631DesignerActionListCollection actionListBuffer = new(); 640DesignerActionListCollection actionListBuffer = new(); 686service.Add(component2, new DesignerActionListCollection()); 719service.Add(new Component(), new DesignerActionListCollection()); 751Assert.Equal(new DesignerActionListCollection { actionList2, actionList3 }, service.GetComponentActions(component2)); 752Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 753Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 762Assert.Equal(new DesignerActionListCollection { actionList2, actionList3 }, service.GetComponentActions(component2)); 763Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 764Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 773Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component2)); 774Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 775Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 787Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component2)); 793Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 796Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 817Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component2)); 823Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 918Assert.Equal(new DesignerActionListCollection { actionList2, actionList3 }, service.GetComponentActions(component2)); 919Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 920Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 929Assert.Equal(new DesignerActionListCollection { actionList2, actionList3 }, service.GetComponentActions(component2)); 930Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 931Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 940Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component2)); 941Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 942Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 952Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 953Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 963Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3));