MenuBindingsEditor クラスとは? わかりやすく解説

MenuBindingsEditor クラス

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

関連付けられた Menu コントロールの DataBindings コレクション用のコンポーネント エディタ提供します

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

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

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.Object
   System.Drawing.Design.UITypeEditor
    System.Web.UI.Design.WebControls.MenuBindingsEditor
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
MenuBindingsEditor メンバ
System.Web.UI.Design.WebControls 名前空間
MenuItemBinding
MenuItemBindingCollection
Menu
MenuDesigner
UITypeEditor



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

辞書ショートカット

すべての辞書の索引

「MenuBindingsEditor クラス」の関連用語

MenuBindingsEditor クラスのお隣キーワード
検索ランキング

   

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



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

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

©2025 GRAS Group, Inc.RSS