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)
86
Add(comp, new
DesignerActionListCollection
([actionList]));
System\Windows\Forms\Design\Behavior\DesignerActionBehavior.cs (1)
61
DesignerActionListCollection 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)
43
DesignerActionListCollection 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)
68
DesignerActionListCollection actionLists =
new
();
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
54
DesignerActionListCollection actionLists =
new
();
System\Windows\Forms\Design\TreeViewDesigner.cs (1)
72
public override DesignerActionListCollection ActionLists => _actionLists ??= new
DesignerActionListCollection
System.Windows.Forms.Design.Tests (90)
System\ComponentModel\Design\DesignerActionListCollectionTests.cs (16)
11
DesignerActionListCollection collection =
new
();
25
DesignerActionListCollection collection =
new
(value);
32
Assert.Throws<ArgumentNullException>("value", () => new
DesignerActionListCollection
(null));
38
DesignerActionListCollection collection =
new
();
63
DesignerActionListCollection collection =
new
();
76
DesignerActionListCollection collection =
new
();
77
collection.AddRange(new
DesignerActionListCollection
(value));
81
collection.AddRange(new
DesignerActionListCollection
(value));
88
DesignerActionListCollection collection =
new
();
96
DesignerActionListCollection collection =
new
();
120
DesignerActionListCollection collection =
new
();
140
DesignerActionListCollection collection =
new
();
166
DesignerActionListCollection collection =
new
();
178
DesignerActionListCollection collection =
new
();
189
DesignerActionListCollection collection =
new
();
200
DesignerActionListCollection collection =
new
();
System\ComponentModel\Design\DesignerActionListsChangedEventArgsTests.cs (1)
11
yield return new object[] { new(), DesignerActionListsChangedType.ActionListsAdded, new
DesignerActionListCollection
() };
System\ComponentModel\Design\DesignerActionServiceTests.cs (73)
45
yield return new object[] { null, new
DesignerActionListCollection
() };
46
yield return new object[] { new DesignerActionList(null), new
DesignerActionListCollection
() };
47
yield return new object[] { new NullCustomDesignerActionList(null), new
DesignerActionListCollection
() };
48
yield return new object[] { actionList, new
DesignerActionListCollection
{ actionList } };
64
DesignerActionListCollection actionListBuffer1 =
new
();
68
DesignerActionListCollection actionListBuffer2 =
new
();
85
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, service.GetComponentActions(component));
86
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.All));
87
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.Service));
90
DesignerActionListCollection actionListBuffer1 =
new
();
94
DesignerActionListCollection actionListBuffer2 =
new
();
96
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, actionListBuffer2);
113
service.Add(component, new
DesignerActionListCollection
{ actionList });
120
DesignerActionListCollection actionListBuffer1 =
new
();
124
DesignerActionListCollection actionListBuffer2 =
new
();
136
service.Add(component, new
DesignerActionListCollection
{ actionList1 });
137
service.Add(component, new
DesignerActionListCollection
{ actionList2 });
138
service.Add(component, new
DesignerActionListCollection
{ null });
141
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, service.GetComponentActions(component));
142
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.All));
143
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.Service));
146
DesignerActionListCollection actionListBuffer1 =
new
();
150
DesignerActionListCollection actionListBuffer2 =
new
();
152
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, actionListBuffer2);
199
service.Add(component2, new
DesignerActionListCollection
());
222
service.Add(component2, new
DesignerActionListCollection
());
238
service.Add(new Component(), new
DesignerActionListCollection
());
392
yield return new object[] { null, new
DesignerActionListCollection
() };
395
yield return new object[] { mockSite.Object, new
DesignerActionListCollection
() };
402
yield return new object[] { nullMockSite.Object, new
DesignerActionListCollection
() };
409
yield return new object[] { invalidMockSite.Object, new
DesignerActionListCollection
() };
423
yield return new object[] { nullCommandSetMockSite.Object, new
DesignerActionListCollection
() };
428
.Returns(new
DesignerActionListCollection
());
437
yield return new object[] { emptyCommandSetMockSite.Object, new
DesignerActionListCollection
() };
442
DesignerActionListCollection actionLists =
new
() { null, new DesignerActionList(null), new NullCustomDesignerActionList(null), actionList };
456
yield return new object[] { actionListsCommandSetMockSite.Object, new
DesignerActionListCollection
{ actionList } };
469
DesignerActionListCollection actionListBuffer =
new
();
482
.Returns(new
DesignerActionListCollection
());
497
DesignerActionListCollection actionListBuffer =
new
();
526
.Returns(new
DesignerActionListCollection
());
541
DesignerActionListCollection actionListBuffer =
new
();
582
.Returns(new
DesignerActionListCollection
());
597
DesignerActionListCollection actionListBuffer =
new
();
629
DesignerActionListCollection actionListBuffer =
new
();
638
DesignerActionListCollection actionListBuffer =
new
();
684
service.Add(component2, new
DesignerActionListCollection
());
717
service.Add(new Component(), new
DesignerActionListCollection
());
749
Assert.Equal(new
DesignerActionListCollection
{ actionList2, actionList3 }, service.GetComponentActions(component2));
750
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
751
Assert.Equal(new
DesignerActionListCollection
{ actionList4, actionList4 }, service.GetComponentActions(component4));
760
Assert.Equal(new
DesignerActionListCollection
{ actionList2, actionList3 }, service.GetComponentActions(component2));
761
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
762
Assert.Equal(new
DesignerActionListCollection
{ actionList4, actionList4 }, service.GetComponentActions(component4));
771
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component2));
772
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
773
Assert.Equal(new
DesignerActionListCollection
{ actionList4, actionList4 }, service.GetComponentActions(component4));
785
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component2));
791
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
794
Assert.Equal(new
DesignerActionListCollection
{ actionList4, actionList4 }, service.GetComponentActions(component4));
815
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component2));
821
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
916
Assert.Equal(new
DesignerActionListCollection
{ actionList2, actionList3 }, service.GetComponentActions(component2));
917
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
918
Assert.Equal(new
DesignerActionListCollection
{ actionList4, actionList4 }, service.GetComponentActions(component4));
927
Assert.Equal(new
DesignerActionListCollection
{ actionList2, actionList3 }, service.GetComponentActions(component2));
928
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
929
Assert.Equal(new
DesignerActionListCollection
{ actionList4, actionList4 }, service.GetComponentActions(component4));
938
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component2));
939
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
940
Assert.Equal(new
DesignerActionListCollection
{ actionList4, actionList4 }, service.GetComponentActions(component4));
950
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
951
Assert.Equal(new
DesignerActionListCollection
{ actionList4, actionList4 }, service.GetComponentActions(component4));
961
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
108 references to DesignerActionListCollection
DesignSurface (2)
CustomControls\CustomButtonDesigner.cs (2)
11
private
DesignerActionListCollection
_actionLists;
13
public 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)
18
private
DesignerActionListCollection
? _actionLists;
28
public virtual
DesignerActionListCollection
ActionLists => _actionLists ??= [];
System\ComponentModel\Design\DesignerActionListCollection.cs (1)
37
public void AddRange(
DesignerActionListCollection
value)
System\ComponentModel\Design\DesignerActionListsChangedEventArgs.cs (2)
24
public DesignerActionListsChangedEventArgs(object? relatedObject, DesignerActionListsChangedType changeType,
DesignerActionListCollection
? actionLists)
47
public
DesignerActionListCollection
? ActionLists { get; }
System\ComponentModel\Design\DesignerActionListsChangedType.cs (1)
8
/// <see cref="
DesignerActionListCollection
">designer action lists collection.</see>
System\ComponentModel\Design\DesignerActionPanel.cs (4)
549
private void ProcessLists(
DesignerActionListCollection
? lists, Dictionary<string, Dictionary<DesignerActionList, List<LineInfo>>> categories)
609
DesignerActionListCollection
? relatedLists = null;
799
public void UpdateTasks(
DesignerActionListCollection
actionLists,
DesignerActionListCollection
serviceActionLists, string title, string? subtitle)
System\ComponentModel\Design\DesignerActionService.cs (12)
17
private readonly Dictionary<IComponent,
DesignerActionListCollection
> _designerActionLists; // this is how we store 'em. Syntax: key = object, value = DesignerActionListCollection
63
public void Add(IComponent comp,
DesignerActionListCollection
designerActionListCollection)
68
if (_designerActionLists.TryGetValue(comp, out
DesignerActionListCollection
? collection))
143
public
DesignerActionListCollection
GetComponentActions(IComponent component)
148
public virtual
DesignerActionListCollection
GetComponentActions(IComponent component, ComponentActionsType type)
152
DesignerActionListCollection
result = [];
170
protected virtual void GetComponentDesignerActions(IComponent component,
DesignerActionListCollection
actionLists)
178
DesignerActionListCollection
? pullCollection = designerCommandSet.ActionLists;
264
protected virtual void GetComponentServiceActions(IComponent component,
DesignerActionListCollection
actionLists)
269
if (_designerActionLists.TryGetValue(component, out
DesignerActionListCollection
? pushCollection))
327
if (_designerActionLists.TryGetValue(comp, out
DesignerActionListCollection
? dacl) && dacl.Contains(actionList))
344
if (!_designerActionLists.TryGetValue(comp, out
DesignerActionListCollection
? actionLists) || !actionLists.Contains(actionList))
System\ComponentModel\Design\DesignerActionUI.cs (1)
168
internal DesignerActionGlyph? GetDesignerActionGlyph(IComponent comp,
DesignerActionListCollection
? dalColl)
System\ComponentModel\Design\DesignerActionUIService.cs (1)
87
DesignerActionListCollection
coll = _designerActionService.GetComponentActions(component);
System\ComponentModel\Design\DesignerCommandSet.cs (2)
17
public
DesignerActionListCollection
? ActionLists => (
DesignerActionListCollection
?)GetCommands(ActionListsCommand);
System\ComponentModel\Design\MenuCommandService.cs (1)
223
DesignerActionListCollection
actionLists = daSvc.GetComponentActions(selectedComponent);
System\Windows\Forms\Design\Behavior\DesignerActionBehavior.cs (3)
26
internal DesignerActionBehavior(IServiceProvider serviceProvider, IComponent relatedComponent,
DesignerActionListCollection
actionLists, DesignerActionUI parentUI)
38
internal
DesignerActionListCollection
ActionLists { get; set; }
61
DesignerActionListCollection
lists = new();
System\Windows\Forms\Design\ComboBoxDesigner.cs (2)
20
private
DesignerActionListCollection
? _actionLists;
124
public override
DesignerActionListCollection
ActionLists
System\Windows\Forms\Design\DataGridViewDesigner.cs (2)
21
private
DesignerActionListCollection
? _actionLists;
183
public override
DesignerActionListCollection
ActionLists
System\Windows\Forms\Design\ImageListDesigner.cs (2)
19
private
DesignerActionListCollection
? _actionLists;
133
public override
DesignerActionListCollection
ActionLists
System\Windows\Forms\Design\ListBoxDesigner.cs (2)
16
private
DesignerActionListCollection
? _actionLists;
191
public override
DesignerActionListCollection
ActionLists
System\Windows\Forms\Design\ListViewDesigner.cs (2)
19
private
DesignerActionListCollection
_actionLists;
174
public override
DesignerActionListCollection
ActionLists
System\Windows\Forms\Design\MaskedTextBoxDesigner.cs (2)
17
private
DesignerActionListCollection
? _actions;
26
public override
DesignerActionListCollection
ActionLists
System\Windows\Forms\Design\NotifyIconDesigner.cs (2)
11
private
DesignerActionListCollection
? _actionLists;
20
public override
DesignerActionListCollection
ActionLists
System\Windows\Forms\Design\PictureBoxDesigner.cs (2)
17
private
DesignerActionListCollection
? _actionLists;
105
public override
DesignerActionListCollection
ActionLists
System\Windows\Forms\Design\RichTextBoxDesigner.cs (2)
16
private
DesignerActionListCollection
? _actionLists;
38
public override
DesignerActionListCollection
ActionLists
System\Windows\Forms\Design\SplitContainerDesigner.cs (2)
39
public override
DesignerActionListCollection
ActionLists
43
DesignerActionListCollection
designerActionListCollection = new();
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (2)
33
private
DesignerActionListCollection
_actionLists; // action list for the Smart Tag
292
public override
DesignerActionListCollection
ActionLists
System\Windows\Forms\Design\TextBoxDesigner.cs (2)
17
private
DesignerActionListCollection
? _actionLists;
19
public override
DesignerActionListCollection
ActionLists
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (2)
93
public override
DesignerActionListCollection
ActionLists
97
DesignerActionListCollection
actions = [];
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
64
public override
DesignerActionListCollection
ActionLists
68
DesignerActionListCollection
actionLists = new();
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (2)
50
public override
DesignerActionListCollection
ActionLists
54
DesignerActionListCollection
actionLists = new();
System\Windows\Forms\Design\TreeViewDesigner.cs (2)
18
private
DesignerActionListCollection
? _actionLists;
72
public override
DesignerActionListCollection
ActionLists => _actionLists ??= new DesignerActionListCollection
System.Windows.Forms.Design.Tests (43)
System\ComponentModel\Design\DesignerActionListCollectionTests.cs (14)
11
DesignerActionListCollection
collection = new();
25
DesignerActionListCollection
collection = new(value);
38
DesignerActionListCollection
collection = new();
63
DesignerActionListCollection
collection = new();
76
DesignerActionListCollection
collection = new();
88
DesignerActionListCollection
collection = new();
90
Assert.Throws<ArgumentNullException>("value", () => collection.AddRange((
DesignerActionListCollection
)null));
96
DesignerActionListCollection
collection = new();
120
DesignerActionListCollection
collection = new();
140
DesignerActionListCollection
collection = new();
166
DesignerActionListCollection
collection = new();
178
DesignerActionListCollection
collection = new();
189
DesignerActionListCollection
collection = new();
200
DesignerActionListCollection
collection = new();
System\ComponentModel\Design\DesignerActionListsChangedEventArgsTests.cs (1)
16
public void Ctor_Object_DesignerActionListsChangedType_DesignerActionListCollection(object relatedObject, DesignerActionListsChangedType changeType,
DesignerActionListCollection
actionLists)
System\ComponentModel\Design\DesignerActionServiceTests.cs (22)
53
public void Add_ComponentDesignerActionList_Success(DesignerActionList actionList,
DesignerActionListCollection
expected)
64
DesignerActionListCollection
actionListBuffer1 = new();
68
DesignerActionListCollection
actionListBuffer2 = new();
90
DesignerActionListCollection
actionListBuffer1 = new();
94
DesignerActionListCollection
actionListBuffer2 = new();
103
Assert.Throws<ArgumentNullException>("comp", () => service.Add(null, (
DesignerActionListCollection
)null));
109
public void Add_ComponentDesignerActionListCollection_Success(DesignerActionList actionList,
DesignerActionListCollection
expected)
120
DesignerActionListCollection
actionListBuffer1 = new();
124
DesignerActionListCollection
actionListBuffer2 = new();
146
DesignerActionListCollection
actionListBuffer1 = new();
150
DesignerActionListCollection
actionListBuffer2 = new();
159
Assert.Throws<ArgumentNullException>("designerActionListCollection", () => service.Add(new Component(), (
DesignerActionListCollection
)null));
442
DesignerActionListCollection
actionLists = new() { null, new DesignerActionList(null), new NullCustomDesignerActionList(null), actionList };
461
public void GetComponentDesignerActions_Invoke_ReturnsExpected(ISite site,
DesignerActionListCollection
expected)
469
DesignerActionListCollection
actionListBuffer = new();
497
DesignerActionListCollection
actionListBuffer = new();
541
DesignerActionListCollection
actionListBuffer = new();
597
DesignerActionListCollection
actionListBuffer = new();
629
DesignerActionListCollection
actionListBuffer = new();
638
DesignerActionListCollection
actionListBuffer = new();
1049
public new void GetComponentDesignerActions(IComponent component,
DesignerActionListCollection
actionLists)
1054
public new void GetComponentServiceActions(IComponent component,
DesignerActionListCollection
actionLists)
System\ComponentModel\Design\DesignerCommandSetTests.cs (1)
50
DesignerActionListCollection
collection = [];
System\Windows\Forms\Design\ListBoxDesignerTests.cs (1)
126
var
actionList = designer.ActionLists;
System\Windows\Forms\Design\TextBoxDesignerTests.cs (3)
19
DesignerActionListCollection
actionLists = designer.ActionLists;
33
DesignerActionListCollection
actionLists1 = designer.ActionLists;
34
DesignerActionListCollection
actionLists2 = designer.ActionLists;
System\Windows\Forms\Design\ToolStripContainerDesignerTests.cs (1)
45
var
actionLists = _designer.ActionLists;