DesignerActionListとは? わかりやすく解説

DesignerActionList クラス

メモ : このクラスは、.NET Framework version 2.0 で新しく追加されたものです。

スマート タグ パネルの作成に使用する項目のリストを定義する型の基本クラスを提供します。

名前空間: System.ComponentModel.Design
アセンブリ: System.Design (system.design.dll 内)
構文構文

Public Class DesignerActionList
Dim instance As DesignerActionList
public class DesignerActionList
public ref class DesignerActionList
public class DesignerActionList
public class DesignerActionList
解説解説

DesignerAction 機能は、コンポーネントおよびコントロールで状況依存の情報やコマンドを表示できるようにします。DesignerActionItem は、スマート タグ パネルに表示でき、コンポーネントまたはコントロールに関連付けられたショートカット メニューにも表示できるため、DesignerAction 機能はデザイナ動詞を置き換えたものと考えることができます。DesignerActionList クラスは、カスタム コンポーネントやカスタム コントロールにスマート タグのサポートを追加する必要のある開発者にとって対話の主要ポイントを表します。

DesignerActionList は基本クラスです。コンポーネント開発者は、このクラスからクラスを派生し、スマート タグ パネルを設定します。スマート タグ パネルは、スマート タグで使用するメニューのようなユーザー インターフェイス (UI: User Interface) を表します。

この派生クラスは、virtualGetSortedActionItems メソッドを実装し、DesignerActionItem から派生したオブジェクトのコレクションを返します。これらのオブジェクトは、スマート タグ パネルの項目を表します。各項目は、その型に従ってパネルに表示されます。たとえば、DesignerActionTextItem は、静的テキスト ラベルとして表示されます。DesignerActionPropertyItem 型と DesignerActionMethodItem 型によって表されるアクティブなパネル項目には、それぞれパブリックにアクセスできる対応するプロパティまたはメソッドがあります。これらのプロパティまたはメソッドは、その項目の機能を実装します。

スマート タグ パネルに項目を追加する方法の詳細については、GetSortedActionItems メソッドに関するトピックを参照してください。

メモメモ

フォームとダイアログ ボックスは、DesignerActionList から派生したクラスのメンバによって表示できます。既定では、これらのウィンドウの親は、スマート タグ パネルのコンテナ ウィンドウです。別のサービスまたはウィンドウを明示的にこれらの子ウィンドウの親にすると、スマート タグが適切に表示されない場合があります。

使用例使用例

DesignerActionItem オブジェクトのコレクションを作成する方法を次のコード例に示します。

このコード例の詳細については、「方法 : Windows フォーム コンポーネントにスマート タグを追加する」を参照してください。

Public Class ColorLabelActionList
    Inherits System.ComponentModel.Design.DesignerActionList
public class ColorLabelActionList :
          System.ComponentModel.Design.DesignerActionList
継承階層継承階層
System.Object
  System.ComponentModel.Design.DesignerActionList
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DesignerActionList メンバ
System.ComponentModel.Design 名前空間
DesignerVerb
DesignerActionItem クラス
GetSortedActionItems
DesignerActionListCollection
その他の技術情報
Windows フォームのデザイナ コマンドと DesignerAction オブジェクト モデル

DesignerActionList コンストラクタ

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

DesignerActionList クラスの新しいインスタンスを初期化します。

名前空間: System.ComponentModel.Design
アセンブリ: System.Design (system.design.dll 内)
構文構文

Public Sub New ( _
    component As IComponent _
)
Dim component As IComponent

Dim instance As New DesignerActionList(component)
public DesignerActionList (
    IComponent component
)
public:
DesignerActionList (
    IComponent^ component
)
public DesignerActionList (
    IComponent component
)
public function DesignerActionList (
    component : IComponent
)

パラメータ

component

DesignerActionList に関連するコンポーネント。

解説解説
使用例使用例

DesignerActionItem オブジェクトのコレクションを作成する方法を次のコード例に示します。

このコード例の詳細については、「方法 : Windows フォーム コンポーネントにスマート タグを追加する」を参照してください。

Public Sub New(ByVal
 component As IComponent)

    MyBase.New(component)
    Me.colLabel = component

    ' Cache a reference to DesignerActionUIService, so the
    ' DesigneractionList can be refreshed.
    Me.designerActionUISvc = _
    CType(GetService(GetType(DesignerActionUIService)), _
    DesignerActionUIService)

End Sub
public ColorLabelActionList( IComponent component ) : base(component)
 
{
    this.colLabel = component as ColorLabel;

    // Cache a reference to DesignerActionUIService, so the
    // DesigneractionList can be refreshed.
    this.designerActionUISvc =
        GetService(typeof(DesignerActionUIService))
        as DesignerActionUIService;
}
.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DesignerActionList クラス
DesignerActionList メンバ
System.ComponentModel.Design 名前空間

DesignerActionList プロパティ


パブリック プロパティパブリック プロパティ

参照参照

関連項目

DesignerActionList クラス
System.ComponentModel.Design 名前空間
DesignerVerb
DesignerActionItem クラス
GetSortedActionItems
DesignerActionListCollection

その他の技術情報

Windows フォームのデザイナ コマンドと DesignerAction オブジェクト モデル

DesignerActionList メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
参照参照

関連項目

DesignerActionList クラス
System.ComponentModel.Design 名前空間
DesignerVerb
DesignerActionItem クラス
GetSortedActionItems
DesignerActionListCollection

その他の技術情報

Windows フォームのデザイナ コマンドと DesignerAction オブジェクト モデル

DesignerActionList メンバ

スマート タグ パネルの作成に使用する項目のリストを定義する型の基本クラスを提供します。

DesignerActionList データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド DesignerActionList DesignerActionList クラスの新しいインスタンスを初期化します。
パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

DesignerActionList クラス
System.ComponentModel.Design 名前空間
DesignerVerb
DesignerActionItem クラス
GetSortedActionItems
DesignerActionListCollection

その他の技術情報

Windows フォームのデザイナ コマンドと DesignerAction オブジェクト モデル



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「DesignerActionList」の関連用語

DesignerActionListのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



DesignerActionListのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS