108 instantiations of 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)
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)
13DesignerActionListCollection collection = new(); 27DesignerActionListCollection collection = new(value); 34Assert.Throws<ArgumentNullException>("value", () => new DesignerActionListCollection(null)); 40DesignerActionListCollection collection = new(); 65DesignerActionListCollection collection = new(); 78DesignerActionListCollection collection = new(); 79collection.AddRange(new DesignerActionListCollection(value)); 83collection.AddRange(new DesignerActionListCollection(value)); 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));
114 references to DesignerActionListCollection
DesignSurface (2)
CustomControls\CustomButtonDesigner.cs (2)
8private DesignerActionListCollection _actionLists; 10public 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)
18private DesignerActionListCollection? _actionLists; 122public 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; 172public 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 (49)
System\ComponentModel\Design\DesignerActionListCollectionTests.cs (14)
13DesignerActionListCollection collection = new(); 27DesignerActionListCollection collection = new(value); 40DesignerActionListCollection collection = new(); 65DesignerActionListCollection collection = new(); 78DesignerActionListCollection collection = new(); 90DesignerActionListCollection collection = new(); 92Assert.Throws<ArgumentNullException>("value", () => collection.AddRange((DesignerActionListCollection)null)); 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)
18public void Ctor_Object_DesignerActionListsChangedType_DesignerActionListCollection(object relatedObject, DesignerActionListsChangedType changeType, DesignerActionListCollection actionLists)
System\ComponentModel\Design\DesignerActionServiceTests.cs (22)
55public void Add_ComponentDesignerActionList_Success(DesignerActionList actionList, DesignerActionListCollection expected) 66DesignerActionListCollection actionListBuffer1 = new(); 70DesignerActionListCollection actionListBuffer2 = new(); 92DesignerActionListCollection actionListBuffer1 = new(); 96DesignerActionListCollection actionListBuffer2 = new(); 105Assert.Throws<ArgumentNullException>("comp", () => service.Add(null, (DesignerActionListCollection)null)); 111public void Add_ComponentDesignerActionListCollection_Success(DesignerActionList actionList, DesignerActionListCollection expected) 122DesignerActionListCollection actionListBuffer1 = new(); 126DesignerActionListCollection actionListBuffer2 = new(); 148DesignerActionListCollection actionListBuffer1 = new(); 152DesignerActionListCollection actionListBuffer2 = new(); 161Assert.Throws<ArgumentNullException>("designerActionListCollection", () => service.Add(new Component(), (DesignerActionListCollection)null)); 444DesignerActionListCollection actionLists = new() { null, new DesignerActionList(null), new NullCustomDesignerActionList(null), actionList }; 463public void GetComponentDesignerActions_Invoke_ReturnsExpected(ISite site, DesignerActionListCollection expected) 471DesignerActionListCollection actionListBuffer = new(); 499DesignerActionListCollection actionListBuffer = new(); 543DesignerActionListCollection actionListBuffer = new(); 599DesignerActionListCollection actionListBuffer = new(); 631DesignerActionListCollection actionListBuffer = new(); 640DesignerActionListCollection actionListBuffer = new(); 1051public new void GetComponentDesignerActions(IComponent component, DesignerActionListCollection actionLists) 1056public new void GetComponentServiceActions(IComponent component, DesignerActionListCollection actionLists)
System\ComponentModel\Design\DesignerCommandSetTests.cs (1)
52DesignerActionListCollection collection = [];
System\Windows\Forms\Design\DataGridViewDesignerTests.cs (2)
136DesignerActionListCollection actionLists1 = _designer.ActionLists; 137DesignerActionListCollection actionLists2 = _designer.ActionLists;
System\Windows\Forms\Design\ListBoxDesignerTests.cs (1)
124var actionList = designer.ActionLists;
System\Windows\Forms\Design\MaskedTextBoxDesignerTests.cs (2)
110DesignerActionListCollection actionLists = _maskedTextBoxDesigner.ActionLists; 133DesignerActionListCollection actionLists = _maskedTextBoxDesigner.ActionLists;
System\Windows\Forms\Design\TableLayoutPanelDesignerTests.cs (2)
106DesignerActionListCollection actionLists = _designer.ActionLists; 110actionLists.Should().BeOfType<DesignerActionListCollection>();
System\Windows\Forms\Design\TextBoxDesignerTests.cs (3)
17DesignerActionListCollection actionLists = designer.ActionLists; 31DesignerActionListCollection actionLists1 = designer.ActionLists; 32DesignerActionListCollection actionLists2 = designer.ActionLists;
System\Windows\Forms\Design\ToolStripContainerDesignerTests.cs (1)
43var actionLists = _designer.ActionLists;