DesignerActionService.Add 方法

定义

将一个或多个 DesignerActionList 对象添加到当前的托管智能标记集合。Adds one or more DesignerActionList objects to the current collection of managed smart tags.

重载

Add(IComponent, DesignerActionList)

DesignerActionList 添加到当前的托管智能标记集合。Adds a DesignerActionList to the current collection of managed smart tags.

Add(IComponent, DesignerActionListCollection)

DesignerActionListCollection 添加到当前的托管智能标记集合。Adds a DesignerActionListCollection to the current collection of managed smart tags.

Add(IComponent, DesignerActionList)

DesignerActionList 添加到当前的托管智能标记集合。Adds a DesignerActionList to the current collection of managed smart tags.

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)

参数

comp
IComponent

要与智能标记关联的 IComponentThe IComponent to associate the smart tags with.

actionList
DesignerActionList

包含要添加的新智能标记项的 DesignerActionListThe DesignerActionList that contains the new smart tag items to be added.

异常

两个参数之一或两个参数均为 nullOne or both of the parameters are null.

注解

Add方法表示添加智能标记项的推送模式。The Add method represents the push model of adding smart tag items. 备用请求模型依赖于在设计器ActionLists中为相应组件重写属性。The alternate pull model relies on overriding the ActionLists property in the designer for the corresponding component.

调用此方法时, 将扫描要添加的列表, 以查找DesignerActionMethodItem IncludeAsDesignerVerb属性设置为true的任何。When this method is called, the lists to be added are scanned for any DesignerActionMethodItem with the IncludeAsDesignerVerb property set to true. 通过调用MenuCommandService.AddVerb方法, 将这些项添加到此组件的设计器谓词列表。These items are added to the list of designer verbs for this component, through a call to the MenuCommandService.AddVerb method.

智能标记在组件实例基础上进行管理。Smart tags are managed on a component instance basis. 托管集合可能包含重复项。The managed collection may contain duplicate entries.

此方法引发DesignerActionListsChanged事件。This method raises the DesignerActionListsChanged event.

另请参阅

Add(IComponent, DesignerActionListCollection)

DesignerActionListCollection 添加到当前的托管智能标记集合。Adds a DesignerActionListCollection to the current collection of managed smart tags.

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

参数

comp
IComponent

要与智能标记关联的 IComponentThe IComponent to associate the smart tags with.

designerActionListCollection
DesignerActionListCollection

包含要添加的新智能标记项的 DesignerActionListCollectionThe DesignerActionListCollection that contains the new smart tag items to be added.

异常

两个参数之一或两个参数均为 nullOne or both of the parameters are null.

注解

Add方法表示添加智能标记项的推送模式。The Add method represents the push model of adding smart tag items. 备用请求模型依赖于在设计器ActionLists中为相应组件重写属性。The alternate pull model relies on overriding the ActionLists property in the designer for the corresponding component.

调用此方法时, 将扫描要添加的列表, 以查找DesignerActionMethodItem IncludeAsDesignerVerb属性设置为true的任何。When this method is called, the lists to be added are scanned for any DesignerActionMethodItem with the IncludeAsDesignerVerb property set to true. 通过调用MenuCommandService.AddVerb方法, 将这些项添加到此组件的设计器谓词列表。These items are added to the list of designer verbs for this component, through a call to the MenuCommandService.AddVerb method.

智能标记在组件实例基础上进行管理。Smart tags are managed on a component instance basis. 托管集合可能包含重复项。The managed collection may contain duplicate entries.

此方法引发DesignerActionListsChanged事件。This method raises the DesignerActionListsChanged event.

另请参阅

适用于