DesignerActionService.Add Metoda

Definicja

Dodaje jeden lub więcej DesignerActionList obiektów do bieżącej kolekcji zarządzanych tagów inteligentnych.

Przeciążenia

Add(IComponent, DesignerActionList)

Dodaje element DesignerActionList do bieżącej kolekcji zarządzanych tagów inteligentnych.

Add(IComponent, DesignerActionListCollection)

Dodaje element DesignerActionListCollection do bieżącej kolekcji zarządzanych tagów inteligentnych.

Add(IComponent, DesignerActionList)

Dodaje element DesignerActionList do bieżącej kolekcji zarządzanych tagów inteligentnych.

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)

Parametry

comp
IComponent

Element IComponent do skojarzenia tagów inteligentnych z.

actionList
DesignerActionList

Element DesignerActionList zawierający nowe elementy tagów inteligentnych do dodania.

Wyjątki

Jeden lub oba parametry to null.

Uwagi

Metoda Add reprezentuje model wypychania dodawania elementów tagów inteligentnych. Alternatywny model ściągania opiera się na zastępowaniu ActionLists właściwości w projektancie odpowiedniego składnika.

Po wywołaniu tej metody listy do dodania są skanowane pod kątem dowolnej DesignerActionMethodItem z właściwością ustawioną IncludeAsDesignerVerb na true. Te elementy są dodawane do listy czasowników projektanta dla tego składnika za pośrednictwem wywołania MenuCommandService.AddVerb metody .

Tagi inteligentne są zarządzane w oparciu o wystąpienie składnika. Kolekcja zarządzana może zawierać zduplikowane wpisy.

Ta metoda zgłasza DesignerActionListsChanged zdarzenie.

Zobacz też

Dotyczy

Add(IComponent, DesignerActionListCollection)

Dodaje element DesignerActionListCollection do bieżącej kolekcji zarządzanych tagów inteligentnych.

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)

Parametry

comp
IComponent

Element IComponent do skojarzenia tagów inteligentnych z.

designerActionListCollection
DesignerActionListCollection

Element DesignerActionListCollection zawierający nowe elementy tagów inteligentnych do dodania.

Wyjątki

Jeden lub oba parametry to null.

Uwagi

Metoda Add reprezentuje model wypychania dodawania elementów tagów inteligentnych. Alternatywny model ściągania opiera się na zastępowaniu ActionLists właściwości w projektancie odpowiedniego składnika.

Po wywołaniu tej metody listy do dodania są skanowane pod kątem dowolnej DesignerActionMethodItem z właściwością ustawioną IncludeAsDesignerVerb na true. Te elementy są dodawane do listy czasowników projektanta dla tego składnika za pośrednictwem wywołania MenuCommandService.AddVerb metody .

Tagi inteligentne są zarządzane w oparciu o wystąpienie składnika. Kolekcja zarządzana może zawierać zduplikowane wpisy.

Ta metoda zgłasza DesignerActionListsChanged zdarzenie.

Zobacz też

Dotyczy