MenuItemCollectionEditor Class
System.Drawing.Design::UITypeEditor
System.Web.UI.Design.WebControls::MenuItemCollectionEditor
Assembly: System.Design (in System.Design.dll)
The MenuItemCollectionEditor type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | MenuItemCollectionEditor | Infrastructure. Initializes a new instance of the MenuItemCollectionEditor class. |
| Name | Description | |
|---|---|---|
![]() | IsDropDownResizable | Gets a value indicating whether drop-down editors should be resizable by the user. (Inherited from UITypeEditor.) |
| Name | Description | |
|---|---|---|
![]() | EditValue(IServiceProvider, Object) | Edits the value of the specified object using the editor style indicated by the GetEditStyle method. (Inherited from UITypeEditor.) |
![]() | EditValue(ITypeDescriptorContext, IServiceProvider, Object) | Edits the value of the menu item collection of the associated control. (Overrides UITypeEditor::EditValue(ITypeDescriptorContext, IServiceProvider, Object).) |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetEditStyle() | Gets the editor style used by the EditValue method. (Inherited from UITypeEditor.) |
![]() | GetEditStyle(ITypeDescriptorContext) | Gets the editing style that is associated with this editor. (Overrides UITypeEditor::GetEditStyle(ITypeDescriptorContext).) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetPaintValueSupported() | Indicates whether this editor supports painting a representation of an object's value. (Inherited from UITypeEditor.) |
![]() | GetPaintValueSupported(ITypeDescriptorContext) | Indicates whether the specified context supports painting a representation of an object's value within the specified context. (Inherited from UITypeEditor.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | PaintValue(PaintValueEventArgs) | Paints a representation of the value of an object using the specified PaintValueEventArgs. (Inherited from UITypeEditor.) |
![]() | PaintValue(Object, Graphics, Rectangle) | Paints a representation of the value of the specified object to the specified canvas. (Inherited from UITypeEditor.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
The MenuItemCollectionEditor class provides a user interface for editing the MenuItem elements of the collection that is specified by the Items property within the associated Menu control.
The MenuItemCollectionEditor is invoked by selecting the ellipsis (…) button on the Items property in the Properties grid of the visual designer, or by choosing Edit Menu Items from the Common Tasks context menu on the control.
The EditValue method edits the values of the menu item collection of the associated Menu control. The GetEditStyle method gets the editing style that is associated with this editor.
The following code example shows how to use the EditorAttribute attribute to associate the MenuItemCollectionEditor and UITypeEditor (the collection editor base class) classes with a property in a custom control, derived from the WebControl class, that gets and sets a MenuItemCollection collection.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.


