C# Class SidebarLibrary.Menus.MenuItemEx

Summary description for MenuItemEx.
Inheritance: System.Windows.Forms.MenuItem
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Protected Properties

Свойство Type Description
menuImages System.Windows.Forms.ImageList

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
OnMeasureItem ( System.Windows.Forms.MeasureItemEventArgs e ) : void

Private Methods

Méthode 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 méthode

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
Résultat void

DrawIcon() public méthode

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
Résultat void

DrawMenuGlyph() public méthode

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

DrawSeparator() public méthode

public DrawSeparator ( Graphics g, Rectangle bounds ) : void
g System.Drawing.Graphics
bounds System.Drawing.Rectangle
Résultat void

MenuItemEx() public méthode

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

MenuItemEx() public méthode

public MenuItemEx ( string name, EventHandler handler ) : System
name string
handler EventHandler
Résultat System

MenuItemEx() public méthode

public MenuItemEx ( string name, EventHandler handler, Shortcut shortcut ) : System
name string
handler EventHandler
shortcut Shortcut
Résultat System

MenuItemEx() public méthode

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
Résultat System

OnMeasureItem() protected méthode

protected OnMeasureItem ( System.Windows.Forms.MeasureItemEventArgs e ) : void
e System.Windows.Forms.MeasureItemEventArgs
Résultat void

UpdateMenuColors() static public méthode

static public UpdateMenuColors ( ) : void
Résultat void

UpdateMenuColors() static public méthode

static public UpdateMenuColors ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

Property Details

menuImages protected_oe static_oe property

protected static ImageList,System.Windows.Forms menuImages
Résultat System.Windows.Forms.ImageList