DesignerActionService.GetComponentDesignerActions 方法

定義

擷取與元件相關聯的提取模型智慧標籤。

protected:
 virtual void GetComponentDesignerActions(System::ComponentModel::IComponent ^ component, System::ComponentModel::Design::DesignerActionListCollection ^ actionLists);
protected virtual void GetComponentDesignerActions (System.ComponentModel.IComponent component, System.ComponentModel.Design.DesignerActionListCollection actionLists);
abstract member GetComponentDesignerActions : System.ComponentModel.IComponent * System.ComponentModel.Design.DesignerActionListCollection -> unit
override this.GetComponentDesignerActions : System.ComponentModel.IComponent * System.ComponentModel.Design.DesignerActionListCollection -> unit
Protected Overridable Sub GetComponentDesignerActions (component As IComponent, actionLists As DesignerActionListCollection)

參數

component
IComponent

智慧標籤所關聯的元件。

actionLists
DesignerActionListCollection

要加入相關聯智慧標籤的集合。

例外狀況

其中一或二個參數都為 null

備註

方法是 GetComponentDesignerActions 方法的 GetComponentActions 協助程式方法。 GetComponentDesignerActions 會搜尋 類型的 Component提取模型智慧標記,然後將這些標記新增至提供的 actionLists 集合。

如果元件的開發人員未透過 ActionLists 設計工具的 屬性明確提供智慧標記集合,這個方法會重複使用設計時間快捷方式功能表項,這些專案是透過 Verbs 設計工具的屬性取得。

適用於

另請參閱