DesignerActionService.GetComponentActions Method (IComponent)

Returns the collection of smart tag item lists associated with a component.

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

public:
DesignerActionListCollection^ GetComponentActions (
	IComponent^ component
)
public DesignerActionListCollection GetComponentActions (
	IComponent component
)
public function GetComponentActions (
	component : IComponent
) : DesignerActionListCollection
Not applicable.

Parameters

component

The component that the smart tags are associated with.

Return Value

The collection of smart tags for the specified component.

Exception typeCondition

ArgumentNullException

comp is a null reference (Nothing in Visual Basic).

The GetComponentActions method is equivalent to a call to the GetComponentActions(IComponent,ComponentActionsType) method using a type parameter of All. Therefore, the collection returned will contain both the push and pull lists of smart tags.

The returned DesignerActionListCollection is the union of item lists added through the Add methods and also the lists obtained from the DesignerCommandSet instance obtained from the component’s site.

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: