C# Class ComponentFactory.Krypton.Ribbon.AppButtonMenuProvider

Implementation class used to provide application button context menu details to view elements.
Inheritance: IContextMenuProvider
Show file Open project: ComponentFactory/Krypton Class Usage Examples

Public Methods

Method Description
AppButtonMenuProvider ( ViewContextMenuManager viewManager, KryptonContextMenuItemCollection menuCollection, ViewLayoutStack viewColumns, IPalette palette, PaletteMode paletteMode, PaletteRedirect redirector, NeedPaintHandler needPaintDelegate ) : System

Initialize a new instance of the ContextMenuProvider class.

OnClose ( CloseReasonEventArgs e ) : void

Fires the Close event.

OnClosing ( CancelEventArgs cea ) : void

Fires the Closing event.

OnDispose ( EventArgs e ) : void

Fires the Dispose event.

ProviderShowSubMenuFixed ( KryptonContextMenuItem menuItem ) : bool

Should the sub menu be shown at fixed screen location for this menu item.

ProviderShowSubMenuFixedRect ( KryptonContextMenuItem menuItem ) : Rectangle

The rectangle used for showing a fixed location for the sub menu.

Method Details

AppButtonMenuProvider() public method

Initialize a new instance of the ContextMenuProvider class.
public AppButtonMenuProvider ( ViewContextMenuManager viewManager, KryptonContextMenuItemCollection menuCollection, ViewLayoutStack viewColumns, IPalette palette, PaletteMode paletteMode, PaletteRedirect redirector, NeedPaintHandler needPaintDelegate ) : System
viewManager ViewContextMenuManager View manager used to organize keyboard events.
menuCollection KryptonContextMenuItemCollection Top level set of menu items.
viewColumns ComponentFactory.Krypton.Toolkit.ViewLayoutStack Stack used for adding new columns.
palette IPalette Local palette setting to use initially.
paletteMode PaletteMode Palette mode setting to use initially.
redirector ComponentFactory.Krypton.Toolkit.PaletteRedirect Redirector used for obtaining palette values.
needPaintDelegate NeedPaintHandler Delegate used to when paint changes occur.
return System

OnClose() public method

Fires the Close event.
public OnClose ( CloseReasonEventArgs e ) : void
e ComponentFactory.Krypton.Toolkit.CloseReasonEventArgs A CloseReasonEventArgs containing the event data.
return void

OnClosing() public method

Fires the Closing event.
public OnClosing ( CancelEventArgs cea ) : void
cea CancelEventArgs An CancelEventArgs containing the event data.
return void

OnDispose() public method

Fires the Dispose event.
public OnDispose ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
return void

ProviderShowSubMenuFixed() public method

Should the sub menu be shown at fixed screen location for this menu item.
public ProviderShowSubMenuFixed ( KryptonContextMenuItem menuItem ) : bool
menuItem ComponentFactory.Krypton.Toolkit.KryptonContextMenuItem Menu item that needs to show sub menu.
return bool

ProviderShowSubMenuFixedRect() public method

The rectangle used for showing a fixed location for the sub menu.
public ProviderShowSubMenuFixedRect ( KryptonContextMenuItem menuItem ) : Rectangle
menuItem ComponentFactory.Krypton.Toolkit.KryptonContextMenuItem Menu item that needs to show sub menu.
return System.Drawing.Rectangle