2 types derived from DesignerActionMethodItem
DesignSurface (1)
CustomControls\DesignerActionVerbItem.cs (1)
6
internal class DesignerActionVerbItem :
DesignerActionMethodItem
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DesignerActionVerbItem.cs (1)
6
internal class DesignerActionVerbItem :
DesignerActionMethodItem
34 instantiations of DesignerActionMethodItem
System.Windows.Forms.Design (22)
System\ComponentModel\Design\DesignerActionList.cs (1)
47
items.Add(info.Name, new
DesignerActionMethodItem
(this, info.Name, dispName, cat, desc));
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\DataGridViewDesigner.cs (2)
876
new
DesignerActionMethodItem
(this,
880
new
DesignerActionMethodItem
(this,
System\Windows\Forms\Design\ImageListActionList.cs (1)
52
new
DesignerActionMethodItem
(this, nameof(ChooseImages), SR.ImageListActionList_ChooseImagesDisplayName, SR.LinksCategoryName, SR.ImageListActionList_ChooseImagesDescription, true)
System\Windows\Forms\Design\ListControlUnboundActionList.cs (1)
27
new
DesignerActionMethodItem
(this, "InvokeItemsDialog",
System\Windows\Forms\Design\ListViewActionList.cs (3)
76
new
DesignerActionMethodItem
(this, "InvokeItemsDialog",
80
new
DesignerActionMethodItem
(this, "InvokeColumnsDialog",
84
new
DesignerActionMethodItem
(this, "InvokeGroupsDialog",
System\Windows\Forms\Design\MaskedTextBoxDesignerActionList.cs (1)
60
DesignerActionItemCollection items = [new
DesignerActionMethodItem
(this, "SetMask", SR.MaskedTextBoxDesignerVerbsSetMaskDesc)];
System\Windows\Forms\Design\NotifyIconDesignerActionList.cs (1)
25
new
DesignerActionMethodItem
(this,
System\Windows\Forms\Design\PictureBoxActionList.cs (1)
42
new
DesignerActionMethodItem
(this, "ChooseImage", SR.ChooseImageDisplayName, SR.PropertiesCategoryName, SR.ChooseImageDescription, true),
System\Windows\Forms\Design\RichTextBoxActionList.cs (1)
27
new
DesignerActionMethodItem
(this, "EditLines", SR.EditLinesDisplayName, SR.LinksCategoryName, SR.EditLinesDescription, true),
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (5)
401
new
DesignerActionMethodItem
(this,
405
new
DesignerActionMethodItem
(this,
413
items.Add(new
DesignerActionMethodItem
(this,
421
items.Add(new
DesignerActionMethodItem
(this,
427
items.Add(new
DesignerActionMethodItem
(this,
System\Windows\Forms\Design\ToolStripActionList.cs (2)
139
items.Add(new
DesignerActionMethodItem
(this, "InvokeEmbedVerb", SR.ToolStripDesignerEmbedVerb, "", SR.ToolStripDesignerEmbedVerbDesc, true));
146
items.Add(new
DesignerActionMethodItem
(this, "InvokeInsertStandardItemsVerb", SR.ToolStripDesignerStandardItemsVerb, "", SR.ToolStripDesignerStandardItemsVerbDesc, true));
System\Windows\Forms\Design\TreeViewActionList.cs (1)
42
new
DesignerActionMethodItem
(this, "InvokeNodesDialog", SR.InvokeNodesDialogDisplayName, SR.PropertiesCategoryName, SR.InvokeNodesDialogDescription, true),
System.Windows.Forms.Design.Tests (12)
System\ComponentModel\Design\DesignerActionMethodItemTests.cs (12)
23
DesignerActionMethodItem item =
new
(actionList, memberName, displayName, category, description, includeAsDesignerVerb);
49
DesignerActionMethodItem item =
new
(actionList, memberName, displayName, category, description);
75
DesignerActionMethodItem item =
new
(actionList, memberName, displayName, category, includeAsDesignerVerb);
101
DesignerActionMethodItem item =
new
(actionList, memberName, displayName, category);
127
DesignerActionMethodItem item =
new
(actionList, memberName, displayName, includeAsDesignerVerb);
153
DesignerActionMethodItem item =
new
(actionList, memberName, displayName);
177
DesignerActionMethodItem item =
new
(null, "memberName", "displayName", "category", "description")
194
DesignerActionMethodItem item =
new
(list, memberName, "displayName", "category", "description");
207
DesignerActionMethodItem item =
new
(null, "memberName", "displayName", "category", "description");
218
DesignerActionMethodItem item =
new
(list, memberName, "displayName", "category", "description");
226
DesignerActionMethodItem item =
new
(list, null, "displayName", "category", "description");
234
DesignerActionMethodItem item =
new
(list, nameof(SubDesignerActionList.MethodWithParameters), "displayName", "category", "description");
33 references to DesignerActionMethodItem
System.Design (1)
artifacts\obj\System.Design.Facade\Release\net9.0\System.Design.Forwards.cs (1)
19
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.
DesignerActionMethodItem
))]
System.Windows.Forms.Design (7)
System\ComponentModel\Design\DesignerActionPanel.cs (2)
583
else if (item is
DesignerActionMethodItem
methodItem)
663
if (item is
DesignerActionMethodItem
methodItem)
System\ComponentModel\Design\DesignerActionPanel.MethodLine.cs (4)
15
private
DesignerActionMethodItem
? _methodItem;
117
public static StandardLineInfo CreateLineInfo(DesignerActionList list,
DesignerActionMethodItem
item) => new Info(list, item);
119
private sealed class Info(DesignerActionList list,
DesignerActionMethodItem
item) : StandardLineInfo(list)
121
public override
DesignerActionMethodItem
Item { get; } = item;
System\ComponentModel\Design\MenuCommandService.cs (1)
233
if (dai[i] is
DesignerActionMethodItem
dami && dami.IncludeAsDesignerVerb)
System.Windows.Forms.Design.Tests (25)
System\ComponentModel\Design\DesignerActionListTests.cs (8)
72
DesignerActionMethodItem
item1 = Assert.IsType<
DesignerActionMethodItem
>(items[0]);
84
DesignerActionMethodItem
item3 = Assert.IsType<
DesignerActionMethodItem
>(items[2]);
96
DesignerActionMethodItem
item5 = Assert.IsType<
DesignerActionMethodItem
>(items[4]);
108
DesignerActionMethodItem
item7 = Assert.IsType<
DesignerActionMethodItem
>(items[6]);
System\ComponentModel\Design\DesignerActionMethodItemTests.cs (12)
23
DesignerActionMethodItem
item = new(actionList, memberName, displayName, category, description, includeAsDesignerVerb);
49
DesignerActionMethodItem
item = new(actionList, memberName, displayName, category, description);
75
DesignerActionMethodItem
item = new(actionList, memberName, displayName, category, includeAsDesignerVerb);
101
DesignerActionMethodItem
item = new(actionList, memberName, displayName, category);
127
DesignerActionMethodItem
item = new(actionList, memberName, displayName, includeAsDesignerVerb);
153
DesignerActionMethodItem
item = new(actionList, memberName, displayName);
177
DesignerActionMethodItem
item = new(null, "memberName", "displayName", "category", "description")
194
DesignerActionMethodItem
item = new(list, memberName, "displayName", "category", "description");
207
DesignerActionMethodItem
item = new(null, "memberName", "displayName", "category", "description");
218
DesignerActionMethodItem
item = new(list, memberName, "displayName", "category", "description");
226
DesignerActionMethodItem
item = new(list, null, "displayName", "category", "description");
234
DesignerActionMethodItem
item = new(list, nameof(SubDesignerActionList.MethodWithParameters), "displayName", "category", "description");
System\ComponentModel\Design\DesignerActionServiceTests.cs (4)
504
DesignerActionMethodItem
actionItem = Assert.IsAssignableFrom<
DesignerActionMethodItem
>(Assert.Single(verbActionActionItems));
601
DesignerActionMethodItem
actionItem = Assert.IsAssignableFrom<
DesignerActionMethodItem
>(Assert.Single(actionList.GetSortedActionItems()));
System\Windows\Forms\Design\ImageListActionListTests.cs (1)
83
items[2].Should().BeOfType<
DesignerActionMethodItem
>();