28 references to Add
DesignSurface (2)
CustomControls\CustomButtonDesignerActionList.cs (2)
23
_actonListItems.
Add
(new DesignerActionHeaderItem("Change color"));
24
_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)
103
items.
Add
(new DesignerActionPropertyItem("ShowImageMargin", SR.ContextMenuStripActionList_ShowImageMargin, SR.ToolStripActionList_Layout, SR.ContextMenuStripActionList_ShowImageMarginDesc));
104
items.
Add
(new DesignerActionPropertyItem("ShowCheckMargin", SR.ContextMenuStripActionList_ShowCheckMargin, SR.ToolStripActionList_Layout, SR.ContextMenuStripActionList_ShowCheckMarginDesc));
System\Windows\Forms\Design\ControlDesigner.DockingActionList.cs (1)
51
items.
Add
(new DesignerActionVerbItem(new DesignerVerb(actionName, OnDockActionClick)));
System\Windows\Forms\Design\DataGridViewDesigner.cs (1)
826
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(this, "InvokeEmbedVerb", SR.ToolStripDesignerEmbedVerb, "", SR.ToolStripDesignerEmbedVerbDesc, true));
146
items.
Add
(new DesignerActionMethodItem(this, "InvokeInsertStandardItemsVerb", SR.ToolStripDesignerStandardItemsVerb, "", SR.ToolStripDesignerStandardItemsVerbDesc, true));
149
items.
Add
(new DesignerActionPropertyItem("RenderMode", SR.ToolStripActionList_RenderMode, SR.ToolStripActionList_Layout, SR.ToolStripActionList_RenderModeDesc));
154
items.
Add
(new DesignerActionPropertyItem("Dock", SR.ToolStripActionList_Dock, SR.ToolStripActionList_Layout, SR.ToolStripActionList_DockDesc));
159
items.
Add
(new DesignerActionPropertyItem("GripStyle", SR.ToolStripActionList_GripStyle, SR.ToolStripActionList_Layout, SR.ToolStripActionList_GripStyleDesc));
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);