DesignerActionService.GetComponentActions Method (IComponent, ComponentActionsType)

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

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

public:
virtual DesignerActionListCollection^ GetComponentActions (
	IComponent^ component, 
	ComponentActionsType type
)
public DesignerActionListCollection GetComponentActions (
	IComponent component, 
	ComponentActionsType type
)
public function GetComponentActions (
	component : IComponent, 
	type : ComponentActionsType
) : DesignerActionListCollection
Not applicable.

Parameters

component

The component that the smart tags are associated with.

type

The ComponentActionsType to filter the associated smart tags with.

Return Value

The collection of smart tags of the specified type for the specified component.

Exception typeCondition

ArgumentNullException

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

This version of the overloaded GetComponentActions method filters on the type parameter, which can have one of the following values.

Value

Description

All

All associated smart tags.

Component

Pull-model smart tags only.

Service

Push-model smart tags only.

If the associated designer for a component does not supply a pull-model smart tag list, then the GetComponentActions method will instead use the designer's design-time shortcut menu items from the Verbs property.

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: