104 references to DesignerActionListCollection
DesignSurface (1)
CustomControls\CustomButtonDesigner.cs (1)
14_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)
130_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)
180_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)
68DesignerActionListCollection 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)
11DesignerActionListCollection collection = new(); 38DesignerActionListCollection collection = new(); 63DesignerActionListCollection collection = new(); 76DesignerActionListCollection collection = new(); 88DesignerActionListCollection collection = new(); 96DesignerActionListCollection collection = new(); 120DesignerActionListCollection collection = new(); 140DesignerActionListCollection collection = new(); 166DesignerActionListCollection collection = new(); 178DesignerActionListCollection collection = new(); 189DesignerActionListCollection collection = new(); 200DesignerActionListCollection collection = new();
System\ComponentModel\Design\DesignerActionListsChangedEventArgsTests.cs (1)
11yield return new object[] { new(), DesignerActionListsChangedType.ActionListsAdded, new DesignerActionListCollection() };
System\ComponentModel\Design\DesignerActionServiceTests.cs (73)
45yield return new object[] { null, new DesignerActionListCollection() }; 46yield return new object[] { new DesignerActionList(null), new DesignerActionListCollection() }; 47yield return new object[] { new NullCustomDesignerActionList(null), new DesignerActionListCollection() }; 48yield return new object[] { actionList, new DesignerActionListCollection { actionList } }; 64DesignerActionListCollection actionListBuffer1 = new(); 68DesignerActionListCollection actionListBuffer2 = new(); 85Assert.Equal(new DesignerActionListCollection { actionList1, actionList2 }, service.GetComponentActions(component)); 86Assert.Equal(new DesignerActionListCollection { actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.All)); 87Assert.Equal(new DesignerActionListCollection { actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.Service)); 90DesignerActionListCollection actionListBuffer1 = new(); 94DesignerActionListCollection actionListBuffer2 = new(); 96Assert.Equal(new DesignerActionListCollection { actionList1, actionList2 }, actionListBuffer2); 113service.Add(component, new DesignerActionListCollection { actionList }); 120DesignerActionListCollection actionListBuffer1 = new(); 124DesignerActionListCollection actionListBuffer2 = new(); 136service.Add(component, new DesignerActionListCollection { actionList1 }); 137service.Add(component, new DesignerActionListCollection { actionList2 }); 138service.Add(component, new DesignerActionListCollection { null }); 141Assert.Equal(new DesignerActionListCollection { actionList1, actionList2 }, service.GetComponentActions(component)); 142Assert.Equal(new DesignerActionListCollection { actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.All)); 143Assert.Equal(new DesignerActionListCollection { actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.Service)); 146DesignerActionListCollection actionListBuffer1 = new(); 150DesignerActionListCollection actionListBuffer2 = new(); 152Assert.Equal(new DesignerActionListCollection { actionList1, actionList2 }, actionListBuffer2); 199service.Add(component2, new DesignerActionListCollection()); 222service.Add(component2, new DesignerActionListCollection()); 238service.Add(new Component(), new DesignerActionListCollection()); 392yield return new object[] { null, new DesignerActionListCollection() }; 395yield return new object[] { mockSite.Object, new DesignerActionListCollection() }; 402yield return new object[] { nullMockSite.Object, new DesignerActionListCollection() }; 409yield return new object[] { invalidMockSite.Object, new DesignerActionListCollection() }; 423yield return new object[] { nullCommandSetMockSite.Object, new DesignerActionListCollection() }; 428.Returns(new DesignerActionListCollection()); 437yield return new object[] { emptyCommandSetMockSite.Object, new DesignerActionListCollection() }; 442DesignerActionListCollection actionLists = new() { null, new DesignerActionList(null), new NullCustomDesignerActionList(null), actionList }; 456yield return new object[] { actionListsCommandSetMockSite.Object, new DesignerActionListCollection { actionList } }; 469DesignerActionListCollection actionListBuffer = new(); 482.Returns(new DesignerActionListCollection()); 497DesignerActionListCollection actionListBuffer = new(); 526.Returns(new DesignerActionListCollection()); 541DesignerActionListCollection actionListBuffer = new(); 582.Returns(new DesignerActionListCollection()); 597DesignerActionListCollection actionListBuffer = new(); 629DesignerActionListCollection actionListBuffer = new(); 638DesignerActionListCollection actionListBuffer = new(); 684service.Add(component2, new DesignerActionListCollection()); 717service.Add(new Component(), new DesignerActionListCollection()); 749Assert.Equal(new DesignerActionListCollection { actionList2, actionList3 }, service.GetComponentActions(component2)); 750Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 751Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 760Assert.Equal(new DesignerActionListCollection { actionList2, actionList3 }, service.GetComponentActions(component2)); 761Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 762Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 771Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component2)); 772Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 773Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 785Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component2)); 791Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 794Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 815Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component2)); 821Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 916Assert.Equal(new DesignerActionListCollection { actionList2, actionList3 }, service.GetComponentActions(component2)); 917Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 918Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 927Assert.Equal(new DesignerActionListCollection { actionList2, actionList3 }, service.GetComponentActions(component2)); 928Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 929Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 938Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component2)); 939Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 940Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 950Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 951Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 961Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3));