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

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > MenuItemStyleCollectionEditor クラスの意味・解説 

MenuItemStyleCollectionEditor クラス

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

関連する Menu コントロールの MenuItemStyleCollection オブジェクトコンポーネント エディタ提供します

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

Public Class MenuItemStyleCollectionEditor
    Inherits CollectionEditor
Dim instance As MenuItemStyleCollectionEditor
public class MenuItemStyleCollectionEditor
 : CollectionEditor
public ref class MenuItemStyleCollectionEditor
 : public CollectionEditor
public class MenuItemStyleCollectionEditor
 extends CollectionEditor
public class MenuItemStyleCollectionEditor
 extends CollectionEditor
解説解説

MenuItemStyleCollectionEditor クラスは、MenuDesigner オブジェクト制御下で、デザイン時に関連する Menu コントロール内の MenuItemStyleCollection オブジェクトの MenuItemStyle 要素編集するためのユーザー インターフェイス提供します

Menu コントロールの LevelMenuItemStyles および LevelSelectedStyles の各プロパティ関連付けられた MenuItemStyleCollectionあります。これらの MenuItemStyleCollection オブジェクトは、メニュー構造レベル (入れ子深さ) に依存するメニュー項目にスタイル適用するために使用されます。

たとえば、ビジュアル デザイナの [プロパティ] グリッドの [LevelMenuItemStyles] 行または [LevelSelectedStyles] 行にある省略記号ボタン ([...]) をクリックすると、MenuItemStyleCollectionEditor呼び出されます。

CanSelectMultipleInstances メソッドは、常に false返しエディタではオブジェクト同時に 1 つしか選択できないこと示します。CreateCollectionForm メソッドは、新しフォーム作成し現在の MenuItemStyleCollection編集します

CreateInstance メソッドは、指定したコレクション項目の型の新しインスタンス作成します。CreateNewItemTypes メソッドは、エディタ作成できる型の配列返します

使用例使用例

EditorAttribute 属性使用しMenuItemStyleCollectionEditor クラスおよび UITypeEditor クラス (コレクション エディタ基本クラス) を WebControl クラスから派生したカスタム コントロールプロパティ関連付けるコード例次に示します。これにより、MenuItemStyleCollection コレクション取得および設定されます。

Private menuItemStyles As MenuItemStyleCollection

' Associate the MenuItemStyleCollectionEditor with the 
' LevelMenuItemStyles.
<EditorAttribute( GetType(System.Web.UI.Design.WebControls.
 _
    MenuItemStyleCollectionEditor), _
    GetType(UITypeEditor))> _
Public Property LevelMenuItemStyles() As
 MenuItemStyleCollection
    Get
        Return menuItemStyles
    End Get
    Set
        menuItemStyles = value
    End Set
End Property ' LevelMenuItemStyles
private MenuItemStyleCollection menuItemStyles;

// Associate the MenuItemStyleCollectionEditor with the 
// LevelMenuItemStyles. 
[Editor(typeof(System.Web.UI.Design.WebControls.
    MenuItemStyleCollectionEditor),
    typeof(UITypeEditor))]
public MenuItemStyleCollection LevelMenuItemStyles
{
    get { return menuItemStyles; }
    set { menuItemStyles = value; }
} // LevelMenuItemStyles
継承階層継承階層
System.Object
   System.Drawing.Design.UITypeEditor
     System.ComponentModel.Design.CollectionEditor
      System.Web.UI.Design.WebControls.MenuItemStyleCollectionEditor
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
MenuItemStyleCollectionEditor メンバ
System.Web.UI.Design.WebControls 名前空間
MenuItemStyle
MenuItemStyleCollection
Menu
MenuDesigner クラス
LevelMenuItemStyles
LevelSelectedStyles
CollectionEditor
SubMenuStyleCollectionEditor
SubMenuStyleCollection



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

辞書ショートカット

すべての辞書の索引

「MenuItemStyleCollectionEditor クラス」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS