Freigeben über


DesignerActionService.Add Methode

Definition

Fügt der aktuellen Auflistung verwalteter Smarttags mindestens ein DesignerActionList Objekt hinzu.

Überlädt

Name Beschreibung
Add(IComponent, DesignerActionList)

Fügt der aktuellen Auflistung verwalteter Smarttags eine DesignerActionList hinzu.

Add(IComponent, DesignerActionListCollection)

Fügt der aktuellen Auflistung verwalteter Smarttags eine DesignerActionListCollection hinzu.

Add(IComponent, DesignerActionList)

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

Fügt der aktuellen Auflistung verwalteter Smarttags eine DesignerActionList hinzu.

public:
 void Add(System::ComponentModel::IComponent ^ comp, System::ComponentModel::Design::DesignerActionList ^ actionList);
public void Add(System.ComponentModel.IComponent comp, System.ComponentModel.Design.DesignerActionList actionList);
member this.Add : System.ComponentModel.IComponent * System.ComponentModel.Design.DesignerActionList -> unit
Public Sub Add (comp As IComponent, actionList As DesignerActionList)

Parameter

comp
IComponent

Der IComponent Smarttags, dem die Smarttags zugeordnet werden sollen.

actionList
DesignerActionList

Das DesignerActionList Element, das die neuen smarttag-Elemente enthält, die hinzugefügt werden sollen.

Ausnahmen

Mindestens einer der Parameter ist null.

Hinweise

Die Add Methode stellt das Pushmodell zum Hinzufügen von Smarttagelementen dar. Das alternative Pullmodell basiert auf dem Überschreiben der ActionLists Eigenschaft im Designer für die entsprechende Komponente.

Wenn diese Methode aufgerufen wird, werden die hinzuzufügenden Listen für alle DesignerActionMethodItem Listen gescannt, auf die die IncludeAsDesignerVerb Eigenschaft festgelegt ist true. Diese Elemente werden der Liste der Designerverben für diese Komponente über einen Aufruf der MenuCommandService.AddVerb Methode hinzugefügt.

Smarttags werden auf Komponenteninstanzbasis verwaltet. Die verwaltete Auflistung kann doppelte Einträge enthalten.

Diese Methode löst das DesignerActionListsChanged Ereignis aus.

Weitere Informationen

Gilt für:

Add(IComponent, DesignerActionListCollection)

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

Fügt der aktuellen Auflistung verwalteter Smarttags eine DesignerActionListCollection hinzu.

public:
 void Add(System::ComponentModel::IComponent ^ comp, System::ComponentModel::Design::DesignerActionListCollection ^ designerActionListCollection);
public void Add(System.ComponentModel.IComponent comp, System.ComponentModel.Design.DesignerActionListCollection designerActionListCollection);
member this.Add : System.ComponentModel.IComponent * System.ComponentModel.Design.DesignerActionListCollection -> unit
Public Sub Add (comp As IComponent, designerActionListCollection As DesignerActionListCollection)

Parameter

comp
IComponent

Der IComponent Smarttags, dem die Smarttags zugeordnet werden sollen.

designerActionListCollection
DesignerActionListCollection

Das DesignerActionListCollection Element, das die neuen smarttag-Elemente enthält, die hinzugefügt werden sollen.

Ausnahmen

Mindestens einer der Parameter ist null.

Hinweise

Die Add Methode stellt das Pushmodell zum Hinzufügen von Smarttagelementen dar. Das alternative Pullmodell basiert auf dem Überschreiben der ActionLists Eigenschaft im Designer für die entsprechende Komponente.

Wenn diese Methode aufgerufen wird, werden die hinzuzufügenden Listen für alle DesignerActionMethodItem Listen gescannt, auf die die IncludeAsDesignerVerb Eigenschaft festgelegt ist true. Diese Elemente werden der Liste der Designerverben für diese Komponente über einen Aufruf der MenuCommandService.AddVerb Methode hinzugefügt.

Smarttags werden auf Komponenteninstanzbasis verwaltet. Die verwaltete Auflistung kann doppelte Einträge enthalten.

Diese Methode löst das DesignerActionListsChanged Ereignis aus.

Weitere Informationen

Gilt für: