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

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > 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



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

辞書ショートカット

すべての辞書の索引

「MenuItemCollectionEditor クラス」の関連用語

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

   

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



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

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

©2024 GRAS Group, Inc.RSS