108 instantiations of 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 (90)
System\ComponentModel\Design\DesignerActionListCollectionTests.cs (16)
11DesignerActionListCollection collection = new(); 25DesignerActionListCollection collection = new(value); 32Assert.Throws<ArgumentNullException>("value", () => new DesignerActionListCollection(null)); 38DesignerActionListCollection collection = new(); 63DesignerActionListCollection collection = new(); 76DesignerActionListCollection collection = new(); 77collection.AddRange(new DesignerActionListCollection(value)); 81collection.AddRange(new DesignerActionListCollection(value)); 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));
108 references to DesignerActionListCollection
DesignSurface (2)
CustomControls\CustomButtonDesigner.cs (2)
11private DesignerActionListCollection _actionLists; 13public override DesignerActionListCollection ActionLists =>
System.Design (1)
artifacts\obj\System.Design.Facade\Release\net10.0\System.Design.Forwards.cs (1)
15[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.DesignerActionListCollection))]
System.Windows.Forms.Design (62)
System\ComponentModel\Design\ComponentDesigner.cs (2)
18private DesignerActionListCollection? _actionLists; 28public virtual DesignerActionListCollection ActionLists => _actionLists ??= [];
System\ComponentModel\Design\DesignerActionListCollection.cs (1)
37public void AddRange(DesignerActionListCollection value)
System\ComponentModel\Design\DesignerActionListsChangedEventArgs.cs (2)
24public DesignerActionListsChangedEventArgs(object? relatedObject, DesignerActionListsChangedType changeType, DesignerActionListCollection? actionLists) 47public DesignerActionListCollection? ActionLists { get; }
System\ComponentModel\Design\DesignerActionListsChangedType.cs (1)
8/// <see cref="DesignerActionListCollection">designer action lists collection.</see>
System\ComponentModel\Design\DesignerActionPanel.cs (4)
549private void ProcessLists(DesignerActionListCollection? lists, Dictionary<string, Dictionary<DesignerActionList, List<LineInfo>>> categories) 609DesignerActionListCollection? relatedLists = null; 799public void UpdateTasks(DesignerActionListCollection actionLists, DesignerActionListCollection serviceActionLists, string title, string? subtitle)
System\ComponentModel\Design\DesignerActionService.cs (12)
17private readonly Dictionary<IComponent, DesignerActionListCollection> _designerActionLists; // this is how we store 'em. Syntax: key = object, value = DesignerActionListCollection 63public void Add(IComponent comp, DesignerActionListCollection designerActionListCollection) 68if (_designerActionLists.TryGetValue(comp, out DesignerActionListCollection? collection)) 143public DesignerActionListCollection GetComponentActions(IComponent component) 148public virtual DesignerActionListCollection GetComponentActions(IComponent component, ComponentActionsType type) 152DesignerActionListCollection result = []; 170protected virtual void GetComponentDesignerActions(IComponent component, DesignerActionListCollection actionLists) 178DesignerActionListCollection? pullCollection = designerCommandSet.ActionLists; 264protected virtual void GetComponentServiceActions(IComponent component, DesignerActionListCollection actionLists) 269if (_designerActionLists.TryGetValue(component, out DesignerActionListCollection? pushCollection)) 327if (_designerActionLists.TryGetValue(comp, out DesignerActionListCollection? dacl) && dacl.Contains(actionList)) 344if (!_designerActionLists.TryGetValue(comp, out DesignerActionListCollection? actionLists) || !actionLists.Contains(actionList))
System\ComponentModel\Design\DesignerActionUI.cs (1)
168internal DesignerActionGlyph? GetDesignerActionGlyph(IComponent comp, DesignerActionListCollection? dalColl)
System\ComponentModel\Design\DesignerActionUIService.cs (1)
87DesignerActionListCollection coll = _designerActionService.GetComponentActions(component);
System\ComponentModel\Design\DesignerCommandSet.cs (2)
17public DesignerActionListCollection? ActionLists => (DesignerActionListCollection?)GetCommands(ActionListsCommand);
System\ComponentModel\Design\MenuCommandService.cs (1)
223DesignerActionListCollection actionLists = daSvc.GetComponentActions(selectedComponent);
System\Windows\Forms\Design\Behavior\DesignerActionBehavior.cs (3)
26internal DesignerActionBehavior(IServiceProvider serviceProvider, IComponent relatedComponent, DesignerActionListCollection actionLists, DesignerActionUI parentUI) 38internal DesignerActionListCollection ActionLists { get; set; } 61DesignerActionListCollection lists = new();
System\Windows\Forms\Design\ComboBoxDesigner.cs (2)
20private DesignerActionListCollection? _actionLists; 124public override DesignerActionListCollection ActionLists
System\Windows\Forms\Design\DataGridViewDesigner.cs (2)
21private DesignerActionListCollection? _actionLists; 183public override DesignerActionListCollection ActionLists
System\Windows\Forms\Design\ImageListDesigner.cs (2)
19private DesignerActionListCollection? _actionLists; 133public override DesignerActionListCollection ActionLists
System\Windows\Forms\Design\ListBoxDesigner.cs (2)
16private DesignerActionListCollection? _actionLists; 191public override DesignerActionListCollection ActionLists
System\Windows\Forms\Design\ListViewDesigner.cs (2)
19private DesignerActionListCollection _actionLists; 174public override DesignerActionListCollection ActionLists
System\Windows\Forms\Design\MaskedTextBoxDesigner.cs (2)
17private DesignerActionListCollection? _actions; 26public override DesignerActionListCollection ActionLists
System\Windows\Forms\Design\NotifyIconDesigner.cs (2)
11private DesignerActionListCollection? _actionLists; 20public override DesignerActionListCollection ActionLists
System\Windows\Forms\Design\PictureBoxDesigner.cs (2)
17private DesignerActionListCollection? _actionLists; 105public override DesignerActionListCollection ActionLists
System\Windows\Forms\Design\RichTextBoxDesigner.cs (2)
16private DesignerActionListCollection? _actionLists; 38public override DesignerActionListCollection ActionLists
System\Windows\Forms\Design\SplitContainerDesigner.cs (2)
39public override DesignerActionListCollection ActionLists 43DesignerActionListCollection designerActionListCollection = new();
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (2)
33private DesignerActionListCollection _actionLists; // action list for the Smart Tag 292public override DesignerActionListCollection ActionLists
System\Windows\Forms\Design\TextBoxDesigner.cs (2)
17private DesignerActionListCollection? _actionLists; 19public override DesignerActionListCollection ActionLists
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (2)
93public override DesignerActionListCollection ActionLists 97DesignerActionListCollection actions = [];
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
64public override DesignerActionListCollection ActionLists 68DesignerActionListCollection actionLists = new();
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (2)
50public override DesignerActionListCollection ActionLists 54DesignerActionListCollection actionLists = new();
System\Windows\Forms\Design\TreeViewDesigner.cs (2)
18private DesignerActionListCollection? _actionLists; 72public override DesignerActionListCollection ActionLists => _actionLists ??= new DesignerActionListCollection
System.Windows.Forms.Design.Tests (43)
System\ComponentModel\Design\DesignerActionListCollectionTests.cs (14)
11DesignerActionListCollection collection = new(); 25DesignerActionListCollection collection = new(value); 38DesignerActionListCollection collection = new(); 63DesignerActionListCollection collection = new(); 76DesignerActionListCollection collection = new(); 88DesignerActionListCollection collection = new(); 90Assert.Throws<ArgumentNullException>("value", () => collection.AddRange((DesignerActionListCollection)null)); 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)
16public void Ctor_Object_DesignerActionListsChangedType_DesignerActionListCollection(object relatedObject, DesignerActionListsChangedType changeType, DesignerActionListCollection actionLists)
System\ComponentModel\Design\DesignerActionServiceTests.cs (22)
53public void Add_ComponentDesignerActionList_Success(DesignerActionList actionList, DesignerActionListCollection expected) 64DesignerActionListCollection actionListBuffer1 = new(); 68DesignerActionListCollection actionListBuffer2 = new(); 90DesignerActionListCollection actionListBuffer1 = new(); 94DesignerActionListCollection actionListBuffer2 = new(); 103Assert.Throws<ArgumentNullException>("comp", () => service.Add(null, (DesignerActionListCollection)null)); 109public void Add_ComponentDesignerActionListCollection_Success(DesignerActionList actionList, DesignerActionListCollection expected) 120DesignerActionListCollection actionListBuffer1 = new(); 124DesignerActionListCollection actionListBuffer2 = new(); 146DesignerActionListCollection actionListBuffer1 = new(); 150DesignerActionListCollection actionListBuffer2 = new(); 159Assert.Throws<ArgumentNullException>("designerActionListCollection", () => service.Add(new Component(), (DesignerActionListCollection)null)); 442DesignerActionListCollection actionLists = new() { null, new DesignerActionList(null), new NullCustomDesignerActionList(null), actionList }; 461public void GetComponentDesignerActions_Invoke_ReturnsExpected(ISite site, DesignerActionListCollection expected) 469DesignerActionListCollection actionListBuffer = new(); 497DesignerActionListCollection actionListBuffer = new(); 541DesignerActionListCollection actionListBuffer = new(); 597DesignerActionListCollection actionListBuffer = new(); 629DesignerActionListCollection actionListBuffer = new(); 638DesignerActionListCollection actionListBuffer = new(); 1049public new void GetComponentDesignerActions(IComponent component, DesignerActionListCollection actionLists) 1054public new void GetComponentServiceActions(IComponent component, DesignerActionListCollection actionLists)
System\ComponentModel\Design\DesignerCommandSetTests.cs (1)
50DesignerActionListCollection collection = [];
System\Windows\Forms\Design\ListBoxDesignerTests.cs (1)
126var actionList = designer.ActionLists;
System\Windows\Forms\Design\TextBoxDesignerTests.cs (3)
19DesignerActionListCollection actionLists = designer.ActionLists; 33DesignerActionListCollection actionLists1 = designer.ActionLists; 34DesignerActionListCollection actionLists2 = designer.ActionLists;
System\Windows\Forms\Design\ToolStripContainerDesignerTests.cs (1)
45var actionLists = _designer.ActionLists;