28 references to Add
DesignSurface (2)
CustomControls\CustomButtonDesignerActionList.cs (2)
22
_actonListItems.
Add
(new DesignerActionHeaderItem("Change color"));
23
_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)
23
collection.
Add
(value1);
30
collection.
Add
(value2);
40
Assert.Throws<ArgumentNullException>("value", () => collection.
Add
(null));
74
collection.
Add
(value);
96
collection.
Add
(value1);
113
collection.
Add
(value);
122
collection.
Add
(value);
134
collection.
Add
(value);
145
collection.
Add
(value);
156
collection.
Add
(value);