Class MainMenu
Represents a menu structure for a form.
public class MainMenu : Menu, IComponent, IDisposable
- Inheritance
-
MainMenu
- Implements
- Inherited Members
Constructors
MainMenu()
Creates a new MainMenu control.
public MainMenu()
MainMenu(IContainer)
Initializes a new instance of the MainMenu class with the specified container.
public MainMenu(IContainer container)
Parameters
container
IContainer
MainMenu(MenuItem[])
Creates a new MainMenu control with the given items to start with.
public MainMenu(MenuItem[] items)
Parameters
items
MenuItem[]
Properties
RightToLeft
This is used for international applications where the language is written from RightToLeft. When this property is true, text alignment and reading order will be from right to left.
public virtual RightToLeft RightToLeft { get; set; }
Property Value
Methods
CloneMenu()
Creates a new MainMenu object which is a dupliate of this one.
public virtual MainMenu CloneMenu()
Returns
CreateMenuHandle()
protected override nint CreateMenuHandle()
Returns
Dispose(bool)
Clears out this MainMenu object and discards all of it's resources. If the menu is parented in a form, it is disconnected from that as well.
protected override void Dispose(bool disposing)
Parameters
disposing
bool
GetForm()
Indicates which form in which we are currently residing [if any]
public Form GetForm()
Returns
OnCollapse(EventArgs)
Fires the collapse event
protected virtual void OnCollapse(EventArgs e)
Parameters
ToString()
Returns a string representation for this control.
public override string ToString()
Returns
Events
Collapse
public event EventHandler Collapse