C# Class SidebarLibrary.Menus.MenuItemEx

Summary description for MenuItemEx.
Inheritance: System.Windows.Forms.MenuItem
Mostra file Open project: sillsdev/FieldWorks Class Usage Examples

Protected Properties

Property Type Description
menuImages System.Windows.Forms.ImageList

Public Methods

Method Description
DrawBackground ( Graphics g, Rectangle bounds, DrawItemState state, bool toplevel, bool hasicon, bool enabled ) : void
DrawIcon ( Graphics g, Image icon, Rectangle bounds, bool selected, bool enabled, bool isChecked ) : void
DrawMenuGlyph ( Graphics g, Rectangle bounds, bool selected, bool bCheckMark ) : void
DrawSeparator ( Graphics g, Rectangle bounds ) : void
MenuItemEx ( string name, Bitmap icon, Shortcut shortcut, EventHandler handler ) : System
MenuItemEx ( string name, EventHandler handler ) : System
MenuItemEx ( string name, EventHandler handler, Shortcut shortcut ) : System
MenuItemEx ( string name, ImageList imageList, int imageIndex, Shortcut shortcut, EventHandler handler ) : System
UpdateMenuColors ( ) : void
UpdateMenuColors ( object sender, EventArgs e ) : void

Protected Methods

Method Description
OnMeasureItem ( System.Windows.Forms.MeasureItemEventArgs e ) : void

Private Methods

Method Description
CloneMenu ( MenuItemEx currentItem ) : MenuItem
DoUpdateMenuColors ( ) : void
DrawCheckedRectangle ( Graphics g, Rectangle bounds ) : void
DrawMenuText ( Graphics g, Rectangle bounds, string text, string shortcut, bool enabled, bool toplevel, DrawItemState state ) : void
Initialize ( Bitmap bitmap, Shortcut shortcut, EventHandler handler, ImageList list, int imageIndex ) : void
MenuItemEx ( ) : System
OnDrawItem ( DrawItemEventArgs e ) : void
OnSelect ( EventArgs e ) : void

Method Details

DrawBackground() public method

public DrawBackground ( Graphics g, Rectangle bounds, DrawItemState state, bool toplevel, bool hasicon, bool enabled ) : void
g System.Drawing.Graphics
bounds System.Drawing.Rectangle
state DrawItemState
toplevel bool
hasicon bool
enabled bool
return void

DrawIcon() public method

public DrawIcon ( Graphics g, Image icon, Rectangle bounds, bool selected, bool enabled, bool isChecked ) : void
g System.Drawing.Graphics
icon Image
bounds System.Drawing.Rectangle
selected bool
enabled bool
isChecked bool
return void

DrawMenuGlyph() public method

public DrawMenuGlyph ( Graphics g, Rectangle bounds, bool selected, bool bCheckMark ) : void
g System.Drawing.Graphics
bounds System.Drawing.Rectangle
selected bool
bCheckMark bool
return void

DrawSeparator() public method

public DrawSeparator ( Graphics g, Rectangle bounds ) : void
g System.Drawing.Graphics
bounds System.Drawing.Rectangle
return void

MenuItemEx() public method

public MenuItemEx ( string name, Bitmap icon, Shortcut shortcut, EventHandler handler ) : System
name string
icon System.Drawing.Bitmap
shortcut Shortcut
handler EventHandler
return System

MenuItemEx() public method

public MenuItemEx ( string name, EventHandler handler ) : System
name string
handler EventHandler
return System

MenuItemEx() public method

public MenuItemEx ( string name, EventHandler handler, Shortcut shortcut ) : System
name string
handler EventHandler
shortcut Shortcut
return System

MenuItemEx() public method

public MenuItemEx ( string name, ImageList imageList, int imageIndex, Shortcut shortcut, EventHandler handler ) : System
name string
imageList System.Windows.Forms.ImageList
imageIndex int
shortcut Shortcut
handler EventHandler
return System

OnMeasureItem() protected method

protected OnMeasureItem ( System.Windows.Forms.MeasureItemEventArgs e ) : void
e System.Windows.Forms.MeasureItemEventArgs
return void

UpdateMenuColors() static public method

static public UpdateMenuColors ( ) : void
return void

UpdateMenuColors() static public method

static public UpdateMenuColors ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Property Details

menuImages protected_oe static_oe property

protected static ImageList,System.Windows.Forms menuImages
return System.Windows.Forms.ImageList