DesignerActionService.Add Metod

Definition

Lägger till ett eller flera DesignerActionList objekt i den aktuella samlingen med hanterade smarta taggar.

Överlagringar

Name Description
Add(IComponent, DesignerActionList)

Lägger till en DesignerActionList i den aktuella samlingen med hanterade smarta taggar.

Add(IComponent, DesignerActionListCollection)

Lägger till en DesignerActionListCollection i den aktuella samlingen med hanterade smarta taggar.

Add(IComponent, DesignerActionList)

Källa:
DesignerActionService.cs
Källa:
DesignerActionService.cs
Källa:
DesignerActionService.cs
Källa:
DesignerActionService.cs
Källa:
DesignerActionService.cs

Lägger till en DesignerActionList i den aktuella samlingen med hanterade smarta taggar.

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)

Parametrar

comp
IComponent

Att IComponent associera de smarta taggarna med.

actionList
DesignerActionList

Som DesignerActionList innehåller de nya smarta taggobjekt som ska läggas till.

Undantag

En eller båda parametrarna är null.

Kommentarer

Metoden Add representerar push-modellen för att lägga till smarta taggobjekt. Den alternativa pull-modellen förlitar sig på att ActionLists åsidosätta egenskapen i designern för motsvarande komponent.

När den här metoden anropas genomsöks de listor som ska läggas till efter alla DesignerActionMethodItem med egenskapen IncludeAsDesignerVerb inställd på true. Dessa objekt läggs till i listan över designerverb för den här komponenten, via ett anrop till MenuCommandService.AddVerb metoden.

Smarta taggar hanteras på komponentinstansbasis. Den hanterade samlingen kan innehålla dubbletter av poster.

Den här metoden genererar händelsen DesignerActionListsChanged .

Se även

Gäller för

Add(IComponent, DesignerActionListCollection)

Källa:
DesignerActionService.cs
Källa:
DesignerActionService.cs
Källa:
DesignerActionService.cs
Källa:
DesignerActionService.cs
Källa:
DesignerActionService.cs

Lägger till en DesignerActionListCollection i den aktuella samlingen med hanterade smarta taggar.

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)

Parametrar

comp
IComponent

Att IComponent associera de smarta taggarna med.

designerActionListCollection
DesignerActionListCollection

Som DesignerActionListCollection innehåller de nya smarta taggobjekt som ska läggas till.

Undantag

En eller båda parametrarna är null.

Kommentarer

Metoden Add representerar push-modellen för att lägga till smarta taggobjekt. Den alternativa pull-modellen förlitar sig på att ActionLists åsidosätta egenskapen i designern för motsvarande komponent.

När den här metoden anropas genomsöks de listor som ska läggas till efter alla DesignerActionMethodItem med egenskapen IncludeAsDesignerVerb inställd på true. Dessa objekt läggs till i listan över designerverb för den här komponenten, via ett anrop till MenuCommandService.AddVerb metoden.

Smarta taggar hanteras på komponentinstansbasis. Den hanterade samlingen kan innehålla dubbletter av poster.

Den här metoden genererar händelsen DesignerActionListsChanged .

Se även

Gäller för