28 references to Add
DesignSurface (2)
CustomControls\CustomButtonDesignerActionList.cs (2)
26
_actonListItems.
Add
(new DesignerActionHeaderItem("Change color"));
27
_actonListItems.
Add
(new DesignerActionVerbItem(new DesignerVerb(GetActionName(), OnColorActionClick)));
System.Windows.Forms.Design (16)
System\ComponentModel\Design\DesignerActionItemCollectionExtensions.cs (1)
9
? collection.
Add
(item)
System\ComponentModel\Design\ToolStripContainerActionList.cs (2)
331
items.
Add
(new DesignerActionMethodItem(
339
items.
Add
(new DesignerActionMethodItem(this, nameof(ReparentControls), SR.DesignerShortcutReparentControls));
System\Windows\Forms\Design\ContextMenuStripActionList.cs (2)
108
items.
Add
(new DesignerActionPropertyItem(
114
items.
Add
(new DesignerActionPropertyItem(
System\Windows\Forms\Design\ControlDesigner.DockingActionList.cs (1)
51
items.
Add
(new DesignerActionVerbItem(new DesignerVerb(actionName, OnDockActionClick)));
System\Windows\Forms\Design\DataGridViewDesigner.cs (1)
828
items.
Add
(chooseDataSource);
System\Windows\Forms\Design\DesignerActionVerbList.cs (1)
25
items.
Add
(new DesignerActionVerbItem(_verbs[i]));
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (3)
413
items.
Add
(new DesignerActionMethodItem(this,
421
items.
Add
(new DesignerActionMethodItem(this,
427
items.
Add
(new DesignerActionMethodItem(this,
System\Windows\Forms\Design\ToolStripActionList.cs (5)
139
items.
Add
(new DesignerActionMethodItem(
152
items.
Add
(new DesignerActionMethodItem(
161
items.
Add
(new DesignerActionPropertyItem(
170
items.
Add
(new DesignerActionPropertyItem(
179
items.
Add
(new DesignerActionPropertyItem(
System.Windows.Forms.Design.Tests (10)
System\ComponentModel\Design\DesignerActionItemCollectionTests.cs (10)
21
collection.
Add
(value1);
28
collection.
Add
(value2);
38
Assert.Throws<ArgumentNullException>("value", () => collection.
Add
(null));
72
collection.
Add
(value);
94
collection.
Add
(value1);
111
collection.
Add
(value);
120
collection.
Add
(value);
132
collection.
Add
(value);
143
collection.
Add
(value);
154
collection.
Add
(value);