Freigeben über


DesignerActionService.GetComponentActions Methode

Definition

Gibt die Auflistung von Smarttag-Elementlisten zurück, die einer Komponente zugeordnet sind.

Überlädt

Name Beschreibung
GetComponentActions(IComponent)

Gibt die Auflistung von Smarttag-Elementlisten zurück, die einer Komponente zugeordnet sind.

GetComponentActions(IComponent, ComponentActionsType)

Gibt die Auflistung von Smarttag-Elementlisten des angegebenen Typs zurück, der einer Komponente zugeordnet ist.

GetComponentActions(IComponent, ComponentActionsType)

Gibt die Auflistung der Designeraktionselementlisten des angegebenen Typs zurück, der einer Komponente zugeordnet ist.

GetComponentActions(IComponent)

Quelle:
DesignerActionService.cs
Quelle:
DesignerActionService.cs
Quelle:
DesignerActionService.cs
Quelle:
DesignerActionService.cs
Quelle:
DesignerActionService.cs

Gibt die Auflistung von Smarttag-Elementlisten zurück, die einer Komponente zugeordnet sind.

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

Parameter

component
IComponent

Die Komponente, der die Smarttags zugeordnet sind.

Gibt zurück

Die Sammlung von Smarttags für die angegebene Komponente.

Ausnahmen

component ist null.

Hinweise

Die GetComponentActions Methode entspricht einem Aufruf der GetComponentActions(IComponent, ComponentActionsType) Methode mithilfe eines type Parameters von All. Daher enthält die zurückgegebene Auflistung sowohl die Push- als auch Pulllisten von Smarttags.

Die zurückgegebene DesignerActionListCollection Liste ist die Vereinigung von Elementlisten, die über die Add Methoden hinzugefügt wurden, sowie die Listen, die von der DesignerCommandSet Instanz abgerufen wurden, die von der Website der Komponente abgerufen wurden.

Weitere Informationen

Gilt für:

GetComponentActions(IComponent, ComponentActionsType)

Gibt die Auflistung von Smarttag-Elementlisten des angegebenen Typs zurück, der einer Komponente zugeordnet ist.

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

Parameter

component
IComponent

Die Komponente, der die Smarttags zugeordnet sind.

type
ComponentActionsType

Der ComponentActionsType zum Filtern der zugeordneten Smarttags.

Gibt zurück

Die Sammlung von Smarttags des angegebenen Typs für die angegebene Komponente.

Ausnahmen

component ist null.

Hinweise

Diese Version der überladenen Methode filtert GetComponentActions nach dem type Parameter, der einen der folgenden Werte aufweisen kann.

Wert Beschreibung
All Alle zugeordneten Smarttags.
Component Nur Smarttags mit Pullmodell.
Service Nur Pushmodell-Smarttags.

Wenn der zugeordnete Designer für eine Komponente keine Smarttagliste des Pullmodells liefert, verwendet die GetComponentActions Methode stattdessen die Entwurfszeit-Kontextmenüelemente aus der Verbs Eigenschaft.

Weitere Informationen

Gilt für:

GetComponentActions(IComponent, ComponentActionsType)

Quelle:
DesignerActionService.cs
Quelle:
DesignerActionService.cs
Quelle:
DesignerActionService.cs
Quelle:
DesignerActionService.cs
Quelle:
DesignerActionService.cs

Gibt die Auflistung der Designeraktionselementlisten des angegebenen Typs zurück, der einer Komponente zugeordnet ist.

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

Parameter

component
IComponent

Die Komponente, der die DesignerActions zugeordnet sind.

type
ComponentActionsType

The ComponentActionsType to filter the associated designer actions with.

Gibt zurück

Die Auflistung der Designeraktionen des angegebenen Typs für die angegebene Komponente.

Ausnahmen

component ist null.

Hinweise

Diese Version der überladenen Methode filtert GetComponentActions nach dem type Parameter, der einen der folgenden Werte aufweisen kann.

Wert Beschreibung
All Alle zugeordneten Designeraktionen.
Component Nur Pullmodell-Designeraktionen.
Service Nur Pushmodell-Designeraktionen.

Wenn der zugeordnete Designer für eine Komponente keine Aktionsliste für Pullmodell-Designer liefert, verwendet die GetComponentActions Methode stattdessen die Entwurfszeit-Kontextmenüelemente des Designers aus der Verbs Eigenschaft.

Gilt für: