DesignerActionService.GetComponentDesignerActions Method (IComponent, DesignerActionListCollection)
.NET Framework (current version)
Retrieves the pull-model smart tags associated with a component.
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
Available since 2.0
Show: