DesignerActionService.Add Method (IComponent, DesignerActionList)

Adds a DesignerActionList to the current collection of managed smart tags.

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

public:
void Add (
	IComponent^ comp, 
	DesignerActionList^ actionList
)
public void Add (
	IComponent comp, 
	DesignerActionList actionList
)
public function Add (
	comp : IComponent, 
	actionList : DesignerActionList
)
Not applicable.

Parameters

comp

The IComponent to associate the smart tags with.

actionList

The DesignerActionList that contains the new smart tag items to be added.

Exception typeCondition

ArgumentNullException

One or both of the parameters are a null reference (Nothing in Visual Basic).

The Add method represents the push model of adding smart tag items. The alternate pull model relies on overriding the ActionLists property in the designer for the corresponding component.

When this method is called, the lists to be added are scanned for any DesignerActionMethodItem with the IncludeAsDesignerVerb property set to true. These items are added to the list of designer verbs for this component, through a call to the MenuCommandService.AddVerb method.

Smart tags are managed on a component instance basis. The managed collection may contain duplicate entries.

This method raises the DesignerActionListsChanged event.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: