DesignerActionService.GetComponentActions メソッド

定義

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

オーバーロード

GetComponentActions(IComponent)

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

GetComponentActions(IComponent, ComponentActionsType)

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

GetComponentActions(IComponent, ComponentActionsType)

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

GetComponentActions(IComponent)

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

C#
public System.ComponentModel.Design.DesignerActionListCollection GetComponentActions (System.ComponentModel.IComponent component);

パラメーター

component
IComponent

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

戻り値

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

例外

compnullです。

注釈

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

返される DesignerActionListCollection は、 メソッドを介して Add 追加された項目リストと、コンポーネントのサイトから取得したインスタンスから DesignerCommandSet 取得したリストの和集合です。

こちらもご覧ください

適用対象

.NET Framework 4.8.1 およびその他のバージョン
製品 バージョン
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

GetComponentActions(IComponent, ComponentActionsType)

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

C#
public virtual System.ComponentModel.Design.DesignerActionListCollection GetComponentActions (System.ComponentModel.IComponent component, System.ComponentModel.Design.ComponentActionsType type);

パラメーター

component
IComponent

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

type
ComponentActionsType

関連付けられているスマート タグのフィルター処理に使用する ComponentActionsType

戻り値

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

例外

compnullです。

注釈

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

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

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

こちらもご覧ください

適用対象

.NET Framework 4.8.1 およびその他のバージョン
製品 バージョン
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

GetComponentActions(IComponent, ComponentActionsType)

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

C#
public virtual System.ComponentModel.Design.DesignerActionListCollection GetComponentActions (System.ComponentModel.IComponent component, System.Windows.Forms.Design.ComponentActionsType type);

パラメーター

component
IComponent

DesignerActions が関連付けられているコンポーネント。

type
ComponentActionsType

ComponentActionsType関連付けられたデザイナー アクションをフィルター処理する 。

戻り値

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

例外

componentnull です。

注釈

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

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

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

適用対象

Windows Desktop 9 およびその他のバージョン
製品 バージョン
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9