語言

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 設計者屬性取得的。

適用於

另請參閱