DesignerActionService.Add Method

Definition

Adds one or more DesignerActionList objects to the current collection of managed smart tags.

Overloads

Add(IComponent, DesignerActionList)

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

Add(IComponent, DesignerActionListCollection)

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

Add(IComponent, DesignerActionList)

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

public:
 void Add(System::ComponentModel::IComponent ^ comp, System::ComponentModel::Design::DesignerActionList ^ actionList);
public void Add (System.ComponentModel.IComponent comp, System.ComponentModel.Design.DesignerActionList actionList);
member this.Add : System.ComponentModel.IComponent * System.ComponentModel.Design.DesignerActionList -> unit
Public Sub Add (comp As IComponent, actionList As DesignerActionList)

Parameters

comp
IComponent

The IComponent to associate the smart tags with.

actionList
DesignerActionList

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

Exceptions

One or both of the parameters are null.

Remarks

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.

See also

Add(IComponent, DesignerActionListCollection)

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

public:
 void Add(System::ComponentModel::IComponent ^ comp, System::ComponentModel::Design::DesignerActionListCollection ^ designerActionListCollection);
public void Add (System.ComponentModel.IComponent comp, System.ComponentModel.Design.DesignerActionListCollection designerActionListCollection);
member this.Add : System.ComponentModel.IComponent * System.ComponentModel.Design.DesignerActionListCollection -> unit

Parameters

comp
IComponent

The IComponent to associate the smart tags with.

designerActionListCollection
DesignerActionListCollection

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

Exceptions

One or both of the parameters are null.

Remarks

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.

See also

Applies to