Export (0) Print
Expand All

DesignerActionMethodItem Constructor (DesignerActionList, String, String, String, Boolean)

Initializes a new instance of the DesignerActionMethodItem class, with the specified method, display, and category names, and a flag that indicates whether the item should appear in other user interface contexts.

Namespace:  System.ComponentModel.Design
Assembly:  System.Design (in System.Design.dll)

public DesignerActionMethodItem(
	DesignerActionList actionList,
	string memberName,
	string displayName,
	string category,
	bool includeAsDesignerVerb
)

Parameters

actionList
Type: System.ComponentModel.Design.DesignerActionList

The DesignerActionList that contains the method this item is associated with.

memberName
Type: System.String

The case-sensitive name of the method in the class derived from DesignerActionList to invoke through the panel item.

displayName
Type: System.String

The panel text for this item.

category
Type: System.String

The case-sensitive String used to group similar items on the panel.

includeAsDesignerVerb
Type: System.Boolean

A flag that specifies whether to also treat the associated method as a designer verb for the associated component.

If the includeAsDesignerVerb parameter is set to true, then the item is also considered a DesignerVerb; therefore, it will be added to the component's design-time shortcut menu. A list of designer verbs can be accessed through the designer's Verbs collection property.

The DesignerActionMethodItem constructor sets the Description property to null.

For more information on how the category parameter is used to group items on a panel, see the GetSortedActionItems method.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft