共用方式為


DesignerActionService.Add 方法

定義

將一個或多個 DesignerActionList 物件加入目前管理的智慧標籤集合中。

多載

名稱 Description
Add(IComponent, DesignerActionList)

新增 a DesignerActionList 到目前管理的智慧標籤集合中。

Add(IComponent, DesignerActionListCollection)

新增 a DesignerActionListCollection 到目前管理的智慧標籤集合中。

Add(IComponent, DesignerActionList)

來源:
DesignerActionService.cs
來源:
DesignerActionService.cs
來源:
DesignerActionService.cs
來源:
DesignerActionService.cs
來源:
DesignerActionService.cs

新增 a DesignerActionList 到目前管理的智慧標籤集合中。

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

IComponent將智慧標籤與之關聯。

actionList
DesignerActionList

DesignerActionList 個包含了即將新增的智慧標籤項目。

例外狀況

其中一個或兩個參數為 null

備註

Add 方法代表推送模型,即新增智慧標籤項目。 替代拉取模型依賴於在設計器中覆蓋 ActionLists 對應元件的屬性。

當呼叫此方法時,會掃描將加入的清單中,尋找屬性IncludeAsDesignerVerb設為 true的任意DesignerActionMethodItem。 這些項目會透過呼叫 MenuCommandService.AddVerb 方法加入此元件的設計動詞清單。

智慧標籤是以元件實例為基礎管理。 管理的典藏庫可能包含重複條目。

此方法提升事件。DesignerActionListsChanged

另請參閱

適用於

Add(IComponent, DesignerActionListCollection)

來源:
DesignerActionService.cs
來源:
DesignerActionService.cs
來源:
DesignerActionService.cs
來源:
DesignerActionService.cs
來源:
DesignerActionService.cs

新增 a DesignerActionListCollection 到目前管理的智慧標籤集合中。

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)

參數

comp
IComponent

IComponent將智慧標籤與之關聯。

designerActionListCollection
DesignerActionListCollection

DesignerActionListCollection 個包含了即將新增的智慧標籤項目。

例外狀況

其中一個或兩個參數為 null

備註

Add 方法代表推送模型,即新增智慧標籤項目。 替代拉取模型依賴於在設計器中覆蓋 ActionLists 對應元件的屬性。

當呼叫此方法時,會掃描將加入的清單中,尋找屬性IncludeAsDesignerVerb設為 true的任意DesignerActionMethodItem。 這些項目會透過呼叫 MenuCommandService.AddVerb 方法加入此元件的設計動詞清單。

智慧標籤是以元件實例為基礎管理。 管理的典藏庫可能包含重複條目。

此方法提升事件。DesignerActionListsChanged

另請參閱

適用於