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)
331items.Add(new DesignerActionMethodItem( 339items.Add(new DesignerActionMethodItem(this, nameof(ReparentControls), SR.DesignerShortcutReparentControls));
System\Windows\Forms\Design\ContextMenuStripActionList.cs (2)
103items.Add(new DesignerActionPropertyItem("ShowImageMargin", SR.ContextMenuStripActionList_ShowImageMargin, SR.ToolStripActionList_Layout, SR.ContextMenuStripActionList_ShowImageMarginDesc)); 104items.Add(new DesignerActionPropertyItem("ShowCheckMargin", SR.ContextMenuStripActionList_ShowCheckMargin, SR.ToolStripActionList_Layout, SR.ContextMenuStripActionList_ShowCheckMarginDesc));
System\Windows\Forms\Design\ControlDesigner.DockingActionList.cs (1)
51items.Add(new DesignerActionVerbItem(new DesignerVerb(actionName, OnDockActionClick)));
System\Windows\Forms\Design\DataGridViewDesigner.cs (1)
826items.Add(chooseDataSource);
System\Windows\Forms\Design\DesignerActionVerbList.cs (1)
25items.Add(new DesignerActionVerbItem(_verbs[i]));
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (3)
413items.Add(new DesignerActionMethodItem(this, 421items.Add(new DesignerActionMethodItem(this, 427items.Add(new DesignerActionMethodItem(this,
System\Windows\Forms\Design\ToolStripActionList.cs (5)
139items.Add(new DesignerActionMethodItem(this, "InvokeEmbedVerb", SR.ToolStripDesignerEmbedVerb, "", SR.ToolStripDesignerEmbedVerbDesc, true)); 146items.Add(new DesignerActionMethodItem(this, "InvokeInsertStandardItemsVerb", SR.ToolStripDesignerStandardItemsVerb, "", SR.ToolStripDesignerStandardItemsVerbDesc, true)); 149items.Add(new DesignerActionPropertyItem("RenderMode", SR.ToolStripActionList_RenderMode, SR.ToolStripActionList_Layout, SR.ToolStripActionList_RenderModeDesc)); 154items.Add(new DesignerActionPropertyItem("Dock", SR.ToolStripActionList_Dock, SR.ToolStripActionList_Layout, SR.ToolStripActionList_DockDesc)); 159items.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)
21collection.Add(value1); 28collection.Add(value2); 38Assert.Throws<ArgumentNullException>("value", () => collection.Add(null)); 72collection.Add(value); 94collection.Add(value1); 111collection.Add(value); 120collection.Add(value); 132collection.Add(value); 143collection.Add(value); 154collection.Add(value);