语言

DesignerActionService.GetComponentActions 方法

定义

返回与组件关联的智能标记项列表的集合。

重载

名称 说明
GetComponentActions(IComponent)

返回与组件关联的智能标记项列表的集合。

GetComponentActions(IComponent, ComponentActionsType)

返回与组件关联的指定类型的智能标记项列表的集合。

GetComponentActions(IComponent, ComponentActionsType)

返回与组件关联的指定类型的设计器操作项列表的集合。

GetComponentActions(IComponent)

Source:
DesignerActionService.cs
Source:
DesignerActionService.cs
Source:
DesignerActionService.cs
Source:
DesignerActionService.cs
Source:
DesignerActionService.cs

返回与组件关联的智能标记项列表的集合。

public:
 System::ComponentModel::Design::DesignerActionListCollection ^ GetComponentActions(System::ComponentModel::IComponent ^ component);
public System.ComponentModel.Design.DesignerActionListCollection GetComponentActions(System.ComponentModel.IComponent component);
member this.GetComponentActions : System.ComponentModel.IComponent -> System.ComponentModel.Design.DesignerActionListCollection
Public Function GetComponentActions (component As IComponent) As DesignerActionListCollection

参数

component
IComponent

智能标记与之关联的组件。

返回

指定组件的智能标记集合。

例外

component 是 null。

注解

该方法GetComponentActions等效于使用GetComponentActions(IComponent, ComponentActionsType)参数对type方法的All调用。 因此,返回的集合将同时包含智能标记的推送和拉取列表。

返回 DesignerActionListCollection 的项列表是通过方法添加 Add 的项列表的并集,也是从 DesignerCommandSet 组件站点获取的实例获取的列表。

另请参阅

适用于

GetComponentActions(IComponent, ComponentActionsType)

返回与组件关联的指定类型的智能标记项列表的集合。

public:
 virtual System::ComponentModel::Design::DesignerActionListCollection ^ GetComponentActions(System::ComponentModel::IComponent ^ component, System::ComponentModel::Design::ComponentActionsType type);
public virtual System.ComponentModel.Design.DesignerActionListCollection GetComponentActions(System.ComponentModel.IComponent component, System.ComponentModel.Design.ComponentActionsType type);
abstract member GetComponentActions : System.ComponentModel.IComponent * System.ComponentModel.Design.ComponentActionsType -> System.ComponentModel.Design.DesignerActionListCollection
override this.GetComponentActions : System.ComponentModel.IComponent * System.ComponentModel.Design.ComponentActionsType -> System.ComponentModel.Design.DesignerActionListCollection
Public Overridable Function GetComponentActions (component As IComponent, type As ComponentActionsType) As DesignerActionListCollection

参数

component
IComponent

智能标记与之关联的组件。

type
ComponentActionsType

用于 ComponentActionsType 筛选关联的智能标记。

返回

指定组件的指定类型的智能标记的集合。

例外

component 是 null。

注解

此版本的重载 GetComponentActions 方法会筛选 type 参数,该参数具有以下值之一。

价值 Description
All 所有关联的智能标记。
Component 仅拉取模型智能标记。
Service 仅推送模型智能标记。

如果组件的关联设计器不提供拉取模型智能标记列表,则 GetComponentActions 该方法将改用该属性中设计器的设计时快捷菜单项 Verbs 。

另请参阅

适用于

GetComponentActions(IComponent, ComponentActionsType)

Source:
DesignerActionService.cs
Source:
DesignerActionService.cs
Source:
DesignerActionService.cs
Source:
DesignerActionService.cs
Source:
DesignerActionService.cs

返回与组件关联的指定类型的设计器操作项列表的集合。

public:
 virtual System::ComponentModel::Design::DesignerActionListCollection ^ GetComponentActions(System::ComponentModel::IComponent ^ component, System::Windows::Forms::Design::ComponentActionsType type);
public virtual System.ComponentModel.Design.DesignerActionListCollection GetComponentActions(System.ComponentModel.IComponent component, System.Windows.Forms.Design.ComponentActionsType type);
abstract member GetComponentActions : System.ComponentModel.IComponent * System.Windows.Forms.Design.ComponentActionsType -> System.ComponentModel.Design.DesignerActionListCollection
override this.GetComponentActions : System.ComponentModel.IComponent * System.Windows.Forms.Design.ComponentActionsType -> System.ComponentModel.Design.DesignerActionListCollection
Public Overridable Function GetComponentActions (component As IComponent, type As ComponentActionsType) As DesignerActionListCollection

参数

component
IComponent

DesignerActions 与之关联的组件。

type
ComponentActionsType

用于 ComponentActionsType 筛选关联的设计器操作。

返回

指定组件的指定类型的设计器操作的集合。

例外

component 是 null。

注解

此版本的重载 GetComponentActions 方法会筛选 type 参数,该参数具有以下值之一。

价值 Description
All 所有关联的设计器操作。
Component 仅拉取模型设计器操作。
Service 仅推送模型设计器操作。

如果组件的关联设计器不提供拉取模型设计器操作列表,则 GetComponentActions 该方法将改用该属性中设计器的设计时快捷菜单项 Verbs 。

适用于