DesignerActionService.GetComponentActions メソッド

定義

コンポーネントに関連付けられているスマート タグ項目リストのコレクションを返します。

オーバーロード

GetComponentActions(IComponent)

コンポーネントに関連付けられているスマート タグ項目リストのコレクションを返します。

GetComponentActions(IComponent, ComponentActionsType)

コンポーネントに関連付けられている、指定した型のスマート タグ項目リストのコレクションを返します。

GetComponentActions(IComponent, ComponentActionsType)

コンポーネントに関連付けられている指定した型のデザイナー アクション 項目リストのコレクションを返します。

GetComponentActions(IComponent)

コンポーネントに関連付けられているスマート タグ項目リストのコレクションを返します。

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

スマート タグが関連付けられているコンポーネント。

戻り値

指定したコンポーネントのスマート タグのコレクション。

例外

compnullです。

注釈

メソッドはGetComponentActions、 のパラメーターAllを使用した GetComponentActions(IComponent, ComponentActionsType) メソッドの呼び出しとtype同じです。 したがって、返されるコレクションには、スマート タグのプッシュ リストとプル リストの両方が含まれます。

返される 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

戻り値

指定したコンポーネントの指定した型のスマート タグのコレクション。

例外

compnullです。

注釈

このバージョンのオーバーロードされた GetComponentActions メソッドは、 パラメーターを type フィルター処理します。このフィルターには、次のいずれかの値を指定できます。

説明
All 関連付けられているすべてのスマート タグ。
Component プルモデル スマート タグのみ。
Service プッシュ モデルスマート タグのみ。

コンポーネントに関連付けられたデザイナーがプルモデルのスマート タグ リストを提供しない場合、 GetComponentActions メソッドは代わりに プロパティのデザイナーのデザイン時ショートカット メニュー項目を Verbs 使用します。

こちらもご覧ください

適用対象

GetComponentActions(IComponent, ComponentActionsType)

コンポーネントに関連付けられている指定した型のデザイナー アクション 項目リストのコレクションを返します。

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関連付けられたデザイナー アクションをフィルター処理する 。

戻り値

指定したコンポーネントの指定した型のデザイナー アクションのコレクション。

例外

componentnull です。

注釈

このバージョンのオーバーロードされた GetComponentActions メソッドは、 パラメーターを type フィルター処理します。このフィルターには、次のいずれかの値を指定できます。

説明
All 関連付けられているすべてのデザイナー アクション。
Component プル モデル デザイナーのアクションのみ。
Service プッシュ モデル デザイナーアクションのみ。

コンポーネントに関連付けられたデザイナーがプルモデル デザイナーのアクション リストを提供しない場合、 GetComponentActions メソッドは代わりに プロパティのデザイナーのデザイン時ショートカット メニュー項目を Verbs 使用します。

適用対象