C# Класс SidebarLibrary.Menus.MenuItemEx

Summary description for MenuItemEx.
Наследование: System.Windows.Forms.MenuItem
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
menuImages System.Windows.Forms.ImageList

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
OnMeasureItem ( System.Windows.Forms.MeasureItemEventArgs e ) : void

Приватные методы

Метод Описание
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

Описание методов

DrawBackground() публичный Метод

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
Результат void

DrawIcon() публичный Метод

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
Результат void

DrawMenuGlyph() публичный Метод

public DrawMenuGlyph ( Graphics g, Rectangle bounds, bool selected, bool bCheckMark ) : void
g System.Drawing.Graphics
bounds System.Drawing.Rectangle
selected bool
bCheckMark bool
Результат void

DrawSeparator() публичный Метод

public DrawSeparator ( Graphics g, Rectangle bounds ) : void
g System.Drawing.Graphics
bounds System.Drawing.Rectangle
Результат void

MenuItemEx() публичный Метод

public MenuItemEx ( string name, Bitmap icon, Shortcut shortcut, EventHandler handler ) : System
name string
icon System.Drawing.Bitmap
shortcut Shortcut
handler EventHandler
Результат System

MenuItemEx() публичный Метод

public MenuItemEx ( string name, EventHandler handler ) : System
name string
handler EventHandler
Результат System

MenuItemEx() публичный Метод

public MenuItemEx ( string name, EventHandler handler, Shortcut shortcut ) : System
name string
handler EventHandler
shortcut Shortcut
Результат System

MenuItemEx() публичный Метод

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
Результат System

OnMeasureItem() защищенный Метод

protected OnMeasureItem ( System.Windows.Forms.MeasureItemEventArgs e ) : void
e System.Windows.Forms.MeasureItemEventArgs
Результат void

UpdateMenuColors() статический публичный Метод

static public UpdateMenuColors ( ) : void
Результат void

UpdateMenuColors() статический публичный Метод

static public UpdateMenuColors ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

Описание свойств

menuImages защищенное статическое свойство

protected static ImageList,System.Windows.Forms menuImages
Результат System.Windows.Forms.ImageList