通过


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 设计器的属性获取的设计时快捷菜单项。

适用于

另请参阅