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)
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)
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)
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)
13
DesignerActionListCollection collection =
new
();
27
DesignerActionListCollection collection =
new
(value);
34
Assert.Throws<ArgumentNullException>("value", () => new
DesignerActionListCollection
(null));
40
DesignerActionListCollection collection =
new
();
65
DesignerActionListCollection collection =
new
();
78
DesignerActionListCollection collection =
new
();
79
collection.AddRange(new
DesignerActionListCollection
(value));
83
collection.AddRange(new
DesignerActionListCollection
(value));
90
DesignerActionListCollection collection =
new
();
98
DesignerActionListCollection collection =
new
();
122
DesignerActionListCollection collection =
new
();
142
DesignerActionListCollection collection =
new
();
168
DesignerActionListCollection collection =
new
();
180
DesignerActionListCollection collection =
new
();
191
DesignerActionListCollection collection =
new
();
202
DesignerActionListCollection collection =
new
();
System\ComponentModel\Design\DesignerActionListsChangedEventArgsTests.cs (1)
13
yield return new object[] { new(), DesignerActionListsChangedType.ActionListsAdded, new
DesignerActionListCollection
() };
System\ComponentModel\Design\DesignerActionServiceTests.cs (73)
47
yield return new object[] { null, new
DesignerActionListCollection
() };
48
yield return new object[] { new DesignerActionList(null), new
DesignerActionListCollection
() };
49
yield return new object[] { new NullCustomDesignerActionList(null), new
DesignerActionListCollection
() };
50
yield return new object[] { actionList, new
DesignerActionListCollection
{ actionList } };
66
DesignerActionListCollection actionListBuffer1 =
new
();
70
DesignerActionListCollection actionListBuffer2 =
new
();
87
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, service.GetComponentActions(component));
88
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.All));
89
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.Service));
92
DesignerActionListCollection actionListBuffer1 =
new
();
96
DesignerActionListCollection actionListBuffer2 =
new
();
98
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, actionListBuffer2);
115
service.Add(component, new
DesignerActionListCollection
{ actionList });
122
DesignerActionListCollection actionListBuffer1 =
new
();
126
DesignerActionListCollection actionListBuffer2 =
new
();
138
service.Add(component, new
DesignerActionListCollection
{ actionList1 });
139
service.Add(component, new
DesignerActionListCollection
{ actionList2 });
140
service.Add(component, new
DesignerActionListCollection
{ null });
143
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, service.GetComponentActions(component));
144
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.All));
145
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.Service));
148
DesignerActionListCollection actionListBuffer1 =
new
();
152
DesignerActionListCollection actionListBuffer2 =
new
();
154
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, actionListBuffer2);
201
service.Add(component2, new
DesignerActionListCollection
());
224
service.Add(component2, new
DesignerActionListCollection
());
240
service.Add(new Component(), new
DesignerActionListCollection
());
394
yield return new object[] { null, new
DesignerActionListCollection
() };
397
yield return new object[] { mockSite.Object, new
DesignerActionListCollection
() };
404
yield return new object[] { nullMockSite.Object, new
DesignerActionListCollection
() };
411
yield return new object[] { invalidMockSite.Object, new
DesignerActionListCollection
() };
425
yield return new object[] { nullCommandSetMockSite.Object, new
DesignerActionListCollection
() };
430
.Returns(new
DesignerActionListCollection
());
439
yield return new object[] { emptyCommandSetMockSite.Object, new
DesignerActionListCollection
() };
444
DesignerActionListCollection actionLists =
new
() { null, new DesignerActionList(null), new NullCustomDesignerActionList(null), actionList };
458
yield return new object[] { actionListsCommandSetMockSite.Object, new
DesignerActionListCollection
{ actionList } };
471
DesignerActionListCollection actionListBuffer =
new
();
484
.Returns(new
DesignerActionListCollection
());
499
DesignerActionListCollection actionListBuffer =
new
();
528
.Returns(new
DesignerActionListCollection
());
543
DesignerActionListCollection actionListBuffer =
new
();
584
.Returns(new
DesignerActionListCollection
());
599
DesignerActionListCollection actionListBuffer =
new
();
631
DesignerActionListCollection actionListBuffer =
new
();
640
DesignerActionListCollection actionListBuffer =
new
();
686
service.Add(component2, new
DesignerActionListCollection
());
719
service.Add(new Component(), new
DesignerActionListCollection
());
751
Assert.Equal(new
DesignerActionListCollection
{ actionList2, actionList3 }, service.GetComponentActions(component2));
752
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
753
Assert.Equal(new
DesignerActionListCollection
{ actionList4, actionList4 }, service.GetComponentActions(component4));
762
Assert.Equal(new
DesignerActionListCollection
{ actionList2, actionList3 }, service.GetComponentActions(component2));
763
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
764
Assert.Equal(new
DesignerActionListCollection
{ actionList4, actionList4 }, service.GetComponentActions(component4));
773
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component2));
774
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
775
Assert.Equal(new
DesignerActionListCollection
{ actionList4, actionList4 }, service.GetComponentActions(component4));
787
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component2));
793
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
796
Assert.Equal(new
DesignerActionListCollection
{ actionList4, actionList4 }, service.GetComponentActions(component4));
817
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component2));
823
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
918
Assert.Equal(new
DesignerActionListCollection
{ actionList2, actionList3 }, service.GetComponentActions(component2));
919
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
920
Assert.Equal(new
DesignerActionListCollection
{ actionList4, actionList4 }, service.GetComponentActions(component4));
929
Assert.Equal(new
DesignerActionListCollection
{ actionList2, actionList3 }, service.GetComponentActions(component2));
930
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
931
Assert.Equal(new
DesignerActionListCollection
{ actionList4, actionList4 }, service.GetComponentActions(component4));
940
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component2));
941
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
942
Assert.Equal(new
DesignerActionListCollection
{ actionList4, actionList4 }, service.GetComponentActions(component4));
952
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
953
Assert.Equal(new
DesignerActionListCollection
{ actionList4, actionList4 }, service.GetComponentActions(component4));
963
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
114 references to DesignerActionListCollection
DesignSurface (2)
CustomControls\CustomButtonDesigner.cs (2)
8
private
DesignerActionListCollection
_actionLists;
10
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)
18
private
DesignerActionListCollection
? _actionLists;
122
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;
172
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 (49)
System\ComponentModel\Design\DesignerActionListCollectionTests.cs (14)
13
DesignerActionListCollection
collection = new();
27
DesignerActionListCollection
collection = new(value);
40
DesignerActionListCollection
collection = new();
65
DesignerActionListCollection
collection = new();
78
DesignerActionListCollection
collection = new();
90
DesignerActionListCollection
collection = new();
92
Assert.Throws<ArgumentNullException>("value", () => collection.AddRange((
DesignerActionListCollection
)null));
98
DesignerActionListCollection
collection = new();
122
DesignerActionListCollection
collection = new();
142
DesignerActionListCollection
collection = new();
168
DesignerActionListCollection
collection = new();
180
DesignerActionListCollection
collection = new();
191
DesignerActionListCollection
collection = new();
202
DesignerActionListCollection
collection = new();
System\ComponentModel\Design\DesignerActionListsChangedEventArgsTests.cs (1)
18
public void Ctor_Object_DesignerActionListsChangedType_DesignerActionListCollection(object relatedObject, DesignerActionListsChangedType changeType,
DesignerActionListCollection
actionLists)
System\ComponentModel\Design\DesignerActionServiceTests.cs (22)
55
public void Add_ComponentDesignerActionList_Success(DesignerActionList actionList,
DesignerActionListCollection
expected)
66
DesignerActionListCollection
actionListBuffer1 = new();
70
DesignerActionListCollection
actionListBuffer2 = new();
92
DesignerActionListCollection
actionListBuffer1 = new();
96
DesignerActionListCollection
actionListBuffer2 = new();
105
Assert.Throws<ArgumentNullException>("comp", () => service.Add(null, (
DesignerActionListCollection
)null));
111
public void Add_ComponentDesignerActionListCollection_Success(DesignerActionList actionList,
DesignerActionListCollection
expected)
122
DesignerActionListCollection
actionListBuffer1 = new();
126
DesignerActionListCollection
actionListBuffer2 = new();
148
DesignerActionListCollection
actionListBuffer1 = new();
152
DesignerActionListCollection
actionListBuffer2 = new();
161
Assert.Throws<ArgumentNullException>("designerActionListCollection", () => service.Add(new Component(), (
DesignerActionListCollection
)null));
444
DesignerActionListCollection
actionLists = new() { null, new DesignerActionList(null), new NullCustomDesignerActionList(null), actionList };
463
public void GetComponentDesignerActions_Invoke_ReturnsExpected(ISite site,
DesignerActionListCollection
expected)
471
DesignerActionListCollection
actionListBuffer = new();
499
DesignerActionListCollection
actionListBuffer = new();
543
DesignerActionListCollection
actionListBuffer = new();
599
DesignerActionListCollection
actionListBuffer = new();
631
DesignerActionListCollection
actionListBuffer = new();
640
DesignerActionListCollection
actionListBuffer = new();
1051
public new void GetComponentDesignerActions(IComponent component,
DesignerActionListCollection
actionLists)
1056
public new void GetComponentServiceActions(IComponent component,
DesignerActionListCollection
actionLists)
System\ComponentModel\Design\DesignerCommandSetTests.cs (1)
52
DesignerActionListCollection
collection = [];
System\Windows\Forms\Design\DataGridViewDesignerTests.cs (2)
136
DesignerActionListCollection
actionLists1 = _designer.ActionLists;
137
DesignerActionListCollection
actionLists2 = _designer.ActionLists;
System\Windows\Forms\Design\ListBoxDesignerTests.cs (1)
124
var
actionList = designer.ActionLists;
System\Windows\Forms\Design\MaskedTextBoxDesignerTests.cs (2)
110
DesignerActionListCollection
actionLists = _maskedTextBoxDesigner.ActionLists;
133
DesignerActionListCollection
actionLists = _maskedTextBoxDesigner.ActionLists;
System\Windows\Forms\Design\TableLayoutPanelDesignerTests.cs (2)
106
DesignerActionListCollection
actionLists = _designer.ActionLists;
110
actionLists.Should().BeOfType<
DesignerActionListCollection
>();
System\Windows\Forms\Design\TextBoxDesignerTests.cs (3)
17
DesignerActionListCollection
actionLists = designer.ActionLists;
31
DesignerActionListCollection
actionLists1 = designer.ActionLists;
32
DesignerActionListCollection
actionLists2 = designer.ActionLists;
System\Windows\Forms\Design\ToolStripContainerDesignerTests.cs (1)
43
var
actionLists = _designer.ActionLists;