DesignerActionService.GetComponentDesignerActions Method (IComponent, DesignerActionListCollection)

 

Retrieves the pull-model smart tags associated with a component.

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

protected virtual void GetComponentDesignerActions(
	IComponent component,
	DesignerActionListCollection actionLists
)

Parameters

component
Type: System.ComponentModel.IComponent

The component that the smart tags are associated with.

actionLists
Type: System.ComponentModel.Design.DesignerActionListCollection

The collection to add the associated smart tags to.

Exception Condition
ArgumentNullException

One or both of the parameters are null.

The GetComponentDesignerActions method is a helper method for the GetComponentActions methods. GetComponentDesignerActions searches for pull-model smart tags of type Component, and then adds these to the supplied actionLists collection.

If the component's developer does not explicitly supply a collection of smart tags through the ActionLists property of its designer, this method will reuse the design-time shortcut menu entries, which are obtained through the Verbs property of the designer.

.NET Framework
Available since 2.0
Return to top
Show: