This documentation is archived and is not being maintained.

DesignerActionService::Add Method (IComponent, DesignerActionListCollection)

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

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

public:
void Add(
	IComponent^ comp, 
	DesignerActionListCollection^ designerActionListCollection
)

Parameters

comp
Type: System.ComponentModel::IComponent

The IComponent to associate the smart tags with.

designerActionListCollection
Type: System.ComponentModel.Design::DesignerActionListCollection

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

ExceptionCondition
ArgumentNullException

One or both of the parameters are nullptr.

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 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

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

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: