DesignerActionService.GetComponentActions Metod

Definition

Returnerar samlingen med listor med smarta taggobjekt som är associerade med en komponent.

Överlagringar

Name Description
GetComponentActions(IComponent)

Returnerar samlingen med listor med smarta taggobjekt som är associerade med en komponent.

GetComponentActions(IComponent, ComponentActionsType)

Returnerar samlingen med listor med smarta taggobjekt av den angivna typen som är associerad med en komponent.

GetComponentActions(IComponent)

Returnerar samlingen med listor med smarta taggobjekt som är associerade med en komponent.

public:
 System::ComponentModel::Design::DesignerActionListCollection ^ GetComponentActions(System::ComponentModel::IComponent ^ component);
public System.ComponentModel.Design.DesignerActionListCollection GetComponentActions(System.ComponentModel.IComponent component);
member this.GetComponentActions : System.ComponentModel.IComponent -> System.ComponentModel.Design.DesignerActionListCollection
Public Function GetComponentActions (component As IComponent) As DesignerActionListCollection

Parametrar

component
IComponent

Komponenten som de smarta taggarna är associerade med.

Returer

Samlingen med smarta taggar för den angivna komponenten.

Undantag

component är null.

Kommentarer

Metoden GetComponentActions motsvarar ett anrop till GetComponentActions(IComponent, ComponentActionsType) metoden med hjälp av Allparametern type . Därför innehåller samlingen som returneras både push- och pull-listorna för smarta taggar.

Den returnerade DesignerActionListCollection är en union av objektlistor som lagts till via Add metoderna och även de listor som hämtats från den DesignerCommandSet instans som hämtats från komponentens plats.

Se även

Gäller för

GetComponentActions(IComponent, ComponentActionsType)

Returnerar samlingen med listor med smarta taggobjekt av den angivna typen som är associerad med en komponent.

public:
 virtual System::ComponentModel::Design::DesignerActionListCollection ^ GetComponentActions(System::ComponentModel::IComponent ^ component, System::ComponentModel::Design::ComponentActionsType type);
public virtual System.ComponentModel.Design.DesignerActionListCollection GetComponentActions(System.ComponentModel.IComponent component, System.ComponentModel.Design.ComponentActionsType type);
abstract member GetComponentActions : System.ComponentModel.IComponent * System.ComponentModel.Design.ComponentActionsType -> System.ComponentModel.Design.DesignerActionListCollection
override this.GetComponentActions : System.ComponentModel.IComponent * System.ComponentModel.Design.ComponentActionsType -> System.ComponentModel.Design.DesignerActionListCollection
Public Overridable Function GetComponentActions (component As IComponent, type As ComponentActionsType) As DesignerActionListCollection

Parametrar

component
IComponent

Komponenten som de smarta taggarna är associerade med.

type
ComponentActionsType

Filtrera ComponentActionsType de associerade smarta taggarna med.

Returer

Samlingen med smarta taggar av den angivna typen för den angivna komponenten.

Undantag

component är null.

Kommentarer

Den här versionen av den överbelastade GetComponentActions metoden filtrerar parametern type , som kan ha något av följande värden.

Value Beskrivning
All Alla associerade smarta taggar.
Component Endast pull-modells smarta taggar.
Service Endast push-modells smarta taggar.

Om den associerade designern för en komponent inte tillhandahåller en lista över GetComponentActions smarta taggar för pull-modell använder metoden i stället designerns snabbmenyobjekt för designtid från Verbs egenskapen.

Se även

Gäller för