Menu.MenuItemCollection(Menu) 생성자

정의

Menu.MenuItemCollection 클래스의 새 인스턴스를 초기화합니다.

public:
 MenuItemCollection(System::Windows::Forms::Menu ^ owner);
public MenuItemCollection (System.Windows.Forms.Menu owner);
new System.Windows.Forms.Menu.MenuItemCollection : System.Windows.Forms.Menu -> System.Windows.Forms.Menu.MenuItemCollection
Public Sub New (owner As Menu)

매개 변수

owner
Menu

이 컬렉션을 소유하는 Menu입니다.

설명

This class requires that you associate the collection with a class that derives from Menu, such as the MainMenu, ContextMenu, or MenuItem class. 이 컬렉션과 연결된 메뉴를 지정해야 하므로 여러 메뉴 항목 컬렉션을 만들고 필요에 따라 메뉴와 연결할 수 없습니다. 메뉴와 연결된 메뉴 항목을 전환하려면 항목 컬렉션을 지우고 컬렉션에 표시할 메뉴 항목을 추가해야 합니다.

적용 대상

추가 정보