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

MenuItemCollectionEditor クラス

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

関連付けられた Menu コントロールItems プロパティ指定されているコレクション用のコンポーネント エディタ提供します

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

Public Class MenuItemCollectionEditor
    Inherits UITypeEditor
Dim instance As MenuItemCollectionEditor
public class MenuItemCollectionEditor : UITypeEditor
public ref class MenuItemCollectionEditor :
 public UITypeEditor
public class MenuItemCollectionEditor extends
 UITypeEditor
public class MenuItemCollectionEditor extends
 UITypeEditor
解説解説
使用例使用例

EditorAttribute 属性使用してMenuItemCollectionEditor クラスと UITypeEditor クラス (コレクション エディタ基本クラス) をカスタム コントロールプロパティ関連付ける方法次のコード例示します。この例のカスタム コントロールは、WebControl クラスから派生しており、MenuItemCollection コレクション取得して設定します

Private menuItems As MenuItemCollection

' Associate the MenuItemCollectionEditor with the Items.
<EditorAttribute( GetType(System.Web.UI.Design.WebControls.
 _
    MenuItemCollectionEditor), _
    GetType(UITypeEditor))> _
Public Property Items() As
 MenuItemCollection
    Get
        If menuItems Is Nothing
 Then
            menuItems = New MenuItemCollection()
        End If
        Return menuItems
    End Get
    Set
        menuItems = value
    End Set
End Property ' Items
private MenuItemCollection menuItems;

// Associate the MenuItemCollectionEditor with the Items. 
[Editor(typeof(System.Web.UI.Design.WebControls.
    MenuItemCollectionEditor),
    typeof(UITypeEditor))]
public MenuItemCollection Items
{
    get
    {
        // If there is no menuItems collection, create it.
        if (menuItems == null)
            menuItems = new MenuItemCollection();

        return menuItems;
    }
    set { menuItems = value; }
} // Items
継承階層継承階層
System.Object
   System.Drawing.Design.UITypeEditor
    System.Web.UI.Design.WebControls.MenuItemCollectionEditor
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
MenuItemCollectionEditor メンバ
System.Web.UI.Design.WebControls 名前空間
MenuItem
MenuItemCollection
Menu
MenuDesigner クラス
UITypeEditor

MenuItemCollectionEditor コンストラクタ

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

MenuItemCollectionEditor クラス新しインスタンス初期化します。

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

Dim instance As New MenuItemCollectionEditor
public MenuItemCollectionEditor ()
public:
MenuItemCollectionEditor ()
public MenuItemCollectionEditor ()
public function MenuItemCollectionEditor ()
解説解説
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
MenuItemCollectionEditor クラス
MenuItemCollectionEditor メンバ
System.Web.UI.Design.WebControls 名前空間
MenuItem
MenuItemCollection
UITypeEditor
MenuDesigner クラス
Menu

MenuItemCollectionEditor プロパティ


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

  名前 説明
パブリック プロパティ IsDropDownResizable  ユーザーがドロップダウン エディタサイズ変更できるかどうかを示す値を取得します。 ( UITypeEditor から継承されます。)
参照参照

関連項目

MenuItemCollectionEditor クラス
System.Web.UI.Design.WebControls 名前空間
MenuItem
MenuItemCollection
Menu
MenuDesigner クラス
UITypeEditor

MenuItemCollectionEditor メソッド


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

( プロテクト メソッド参照)
  名前 説明
パブリック メソッド EditValue オーバーロードされます関連付けられた Menu コントロールメニュー項目コレクションの値を編集します
パブリック メソッド Equals  オーバーロードされます2 つObject インスタンス等しかどうか判断します。 ( Object から継承されます。)
パブリック メソッド GetEditStyle オーバーロードされます対象エディタ関連付けられている編集スタイル取得します
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適してます。 ( Object から継承されます。)
パブリック メソッド GetPaintValueSupported  オーバーロードされますエディタオブジェクトの値の視覚的な表現描画できるかどうか示します。 ( UITypeEditor から継承されます。)
パブリック メソッド GetType  現在のインスタンスType取得します。 ( Object から継承されます。)
パブリック メソッド PaintValue  オーバーロードされますオブジェクトの値の視覚的な表現描画ます。 ( UITypeEditor から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 ( Object から継承されます。)
パブリック メソッド ToString  現在の Object を表す String返します。 ( Object から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

MenuItemCollectionEditor クラス
System.Web.UI.Design.WebControls 名前空間
MenuItem
MenuItemCollection
Menu
MenuDesigner クラス
UITypeEditor

MenuItemCollectionEditor メンバ

関連付けられた Menu コントロールItems プロパティ指定されているコレクション用のコンポーネント エディタ提供します

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


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド MenuItemCollectionEditor MenuItemCollectionEditor クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ IsDropDownResizable  ユーザーがドロップダウン エディタサイズ変更できるかどうかを示す値を取得します。(UITypeEditor から継承されます。)
パブリック メソッドパブリック メソッド
( プロテクト メソッド参照)
  名前 説明
パブリック メソッド EditValue オーバーロードされます関連付けられた Menu コントロールメニュー項目コレクションの値を編集します
パブリック メソッド Equals  オーバーロードされます2 つObject インスタンス等しかどうか判断します。 (Object から継承されます。)
パブリック メソッド GetEditStyle オーバーロードされます対象エディタ関連付けられている編集スタイル取得します
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適してます。 (Object から継承されます。)
パブリック メソッド GetPaintValueSupported  オーバーロードされますエディタオブジェクトの値の視覚的な表現描画できるかどうか示します。 (UITypeEditor から継承されます。)
パブリック メソッド GetType  現在のインスタンスType取得します。 (Object から継承されます。)
パブリック メソッド PaintValue  オーバーロードされますオブジェクトの値の視覚的な表現描画ます。 (UITypeEditor から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 (Object から継承されます。)
パブリック メソッド ToString  現在の Object を表す String返します。 (Object から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

MenuItemCollectionEditor クラス
System.Web.UI.Design.WebControls 名前空間
MenuItem
MenuItemCollection
Menu
MenuDesigner クラス
UITypeEditor


このページでは「.NET Framework クラス ライブラリ リファレンス」からMenuItemCollectionEditorを検索した結果を表示しています。
Weblioに収録されているすべての辞書からMenuItemCollectionEditorを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からMenuItemCollectionEditor を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「MenuItemCollectionEditor」の関連用語

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

   

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



MenuItemCollectionEditorのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS