DesignerActionService.GetComponentActions メソッド
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
コンポーネントに関連付けられているスマート タグ項目リストのコレクションを返します。
GetComponentActions(IComponent) |
コンポーネントに関連付けられているスマート タグ項目リストのコレクションを返します。 |
GetComponentActions(IComponent, ComponentActionsType) |
コンポーネントに関連付けられている、指定した型のスマート タグ項目リストのコレクションを返します。 |
GetComponentActions(IComponent, ComponentActionsType) |
コンポーネントに関連付けられている指定した型のデザイナー アクション 項目リストのコレクションを返します。 |
コンポーネントに関連付けられているスマート タグ項目リストのコレクションを返します。
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
スマート タグが関連付けられているコンポーネント。
戻り値
指定したコンポーネントのスマート タグのコレクション。
例外
comp
が null
です。
注釈
メソッドはGetComponentActions、 のパラメーターAllを使用した GetComponentActions(IComponent, ComponentActionsType) メソッドの呼び出しとtype
同じです。 したがって、返されるコレクションには、スマート タグのプッシュ リストとプル リストの両方が含まれます。
返される DesignerActionListCollection は、 メソッドを介して Add 追加された項目リストと、コンポーネントのサイトから取得したインスタンスから DesignerCommandSet 取得したリストの和集合です。
こちらもご覧ください
- GetComponentDesignerActions(IComponent, DesignerActionListCollection)
- GetComponentServiceActions(IComponent, DesignerActionListCollection)
- Add
- DesignerCommandSet
- Windows フォームのデザイナー コマンドと DesignerAction オブジェクト モデル
適用対象
.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 |
コンポーネントに関連付けられている、指定した型のスマート タグ項目リストのコレクションを返します。
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。
戻り値
指定したコンポーネントの指定した型のスマート タグのコレクション。
例外
comp
が null
です。
注釈
このバージョンのオーバーロードされた GetComponentActions メソッドは、 パラメーターを type
フィルター処理します。このフィルターには、次のいずれかの値を指定できます。
コンポーネントに関連付けられたデザイナーがプルモデルのスマート タグ リストを提供しない場合、 GetComponentActions メソッドは代わりに プロパティのデザイナーのデザイン時ショートカット メニュー項目を Verbs 使用します。
こちらもご覧ください
- GetComponentDesignerActions(IComponent, DesignerActionListCollection)
- GetComponentServiceActions(IComponent, DesignerActionListCollection)
- DesignerActionListCollection
- DesignerVerb
- ComponentActionsType
- Windows フォームのデザイナー コマンドと DesignerAction オブジェクト モデル
適用対象
.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 |
コンポーネントに関連付けられている指定した型のデザイナー アクション 項目リストのコレクションを返します。
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
フィルター処理します。このフィルターには、次のいずれかの値を指定できます。
コンポーネントに関連付けられたデザイナーがプルモデル デザイナーのアクション リストを提供しない場合、 GetComponentActions メソッドは代わりに プロパティのデザイナーのデザイン時ショートカット メニュー項目を Verbs 使用します。
適用対象
Windows Desktop 9 およびその他のバージョン
製品 | バージョン |
---|---|
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET に関するフィードバック
.NET はオープンソース プロジェクトです。 フィードバックを提供するにはリンクを選択します。