MenuBindingsEditor クラス
アセンブリ: System.Design (system.design.dll 内)


MenuBindingsEditor クラスは、関連付けられた Menu コントロール内の DataBindings コレクションの MenuItemBinding 要素を編集するためのユーザー インターフェイスを提供します。
MenuBindingsEditor オブジェクトは、ビジュアルなデザイナの [プロパティ] グリッドの [Databindings] プロパティにある省略記号 ([...]) ボタンをクリックするか、コントロールの [よく使う機能] コンテキスト メニューの [メニュー項目の編集] をクリックすると表示されます。
EditValue メソッドは、関連付けられた Menu コントロールのデータ バインディング コレクションの値を編集します。GetEditStyle メソッドは、このエディタに関連付けられている編集スタイルを取得します。

EditorAttribute 属性を使用して、MenuBindingsEditor クラスと、UITypeEditor クラス (バインディング エディタの基本クラス) をカスタム コントロールのプロパティと関連付ける方法を次のコード例に示します。この例のカスタム コントロールは、WebControl クラスから派生しており、MenuItemCollection コレクションを取得して設定します。
Private localBindings As MenuItemBindingCollection ' Associate the MenuBindingsEditor with the DataBindings. <EditorAttribute( GetType(System.Web.UI.Design.WebControls. _ MenuBindingsEditor), _ GetType(UITypeEditor))> _ Public Property DataBindings() As MenuItemBindingCollection Get Return localBindings End Get Set localBindings = value End Set End Property ' DataBindings
private MenuItemBindingCollection localBindings; // Associate the MenuBindingsEditor with the DataBindings. [Editor(typeof(System.Web.UI.Design.WebControls.MenuBindingsEditor), typeof(UITypeEditor))] public MenuItemBindingCollection DataBindings { get { return localBindings; } set { localBindings = value; } } // DataBindings

System.Drawing.Design.UITypeEditor
System.Web.UI.Design.WebControls.MenuBindingsEditor


Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からMenuBindingsEditor クラスを検索する場合は、下記のリンクをクリックしてください。

- MenuBindingsEditor クラスのページへのリンク