C# Class ComponentFactory.Krypton.Toolkit.ContextMenuProvider

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

Public Methods

Method Description
ContextMenuProvider ( IContextMenuProvider provider, ViewContextMenuManager viewManager, ViewLayoutStack viewColumns, NeedPaintHandler needPaintDelegate ) : System

Initialize a new instance of the ContextMenuProvider class.

ContextMenuProvider ( KryptonContextMenu contextMenu, ViewContextMenuManager viewManager, ViewLayoutStack viewColumns, IPalette palette, PaletteMode paletteMode, PaletteRedirect redirector, PaletteRedirectContextMenu redirectorImages, NeedPaintHandler needPaintDelegate, bool enabled ) : System

Initialize a new instance of the ContextMenuProvider class.

ContextMenuProvider ( ViewContextMenuManager viewManager, ViewLayoutStack viewColumns, IPalette palette, PaletteMode paletteMode, PaletteContextMenuRedirect stateCommon, PaletteContextMenuItemState stateDisabled, PaletteContextMenuItemState stateNormal, PaletteContextMenuItemStateHighlight stateHighlight, PaletteContextMenuItemStateChecked stateChecked, PaletteRedirect redirector, PaletteRedirectContextMenu redirectorImages, NeedPaintHandler needPaintDelegate, bool enabled ) : 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

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

Method Details

ContextMenuProvider() public method

Initialize a new instance of the ContextMenuProvider class.
public ContextMenuProvider ( IContextMenuProvider provider, ViewContextMenuManager viewManager, ViewLayoutStack viewColumns, NeedPaintHandler needPaintDelegate ) : System
provider IContextMenuProvider Original provider.
viewManager ViewContextMenuManager Reference to view manager.
viewColumns ViewLayoutStack Columns view element.
needPaintDelegate NeedPaintHandler Delegate for requesting paint changes.
return System

ContextMenuProvider() public method

Initialize a new instance of the ContextMenuProvider class.
public ContextMenuProvider ( KryptonContextMenu contextMenu, ViewContextMenuManager viewManager, ViewLayoutStack viewColumns, IPalette palette, PaletteMode paletteMode, PaletteRedirect redirector, PaletteRedirectContextMenu redirectorImages, NeedPaintHandler needPaintDelegate, bool enabled ) : System
contextMenu KryptonContextMenu Originating context menu instance.
viewManager ViewContextMenuManager Reference to view manager.
viewColumns ViewLayoutStack Columns view element.
palette IPalette Local palette setting to use initially.
paletteMode PaletteMode Palette mode setting to use initially.
redirector PaletteRedirect Redirector used for obtaining palette values.
redirectorImages PaletteRedirectContextMenu Redirector used for obtaining images.
needPaintDelegate NeedPaintHandler Delegate for requesting paint changes.
enabled bool Enabled state of the context menu.
return System

ContextMenuProvider() public method

Initialize a new instance of the ContextMenuProvider class.
public ContextMenuProvider ( ViewContextMenuManager viewManager, ViewLayoutStack viewColumns, IPalette palette, PaletteMode paletteMode, PaletteContextMenuRedirect stateCommon, PaletteContextMenuItemState stateDisabled, PaletteContextMenuItemState stateNormal, PaletteContextMenuItemStateHighlight stateHighlight, PaletteContextMenuItemStateChecked stateChecked, PaletteRedirect redirector, PaletteRedirectContextMenu redirectorImages, NeedPaintHandler needPaintDelegate, bool enabled ) : System
viewManager ViewContextMenuManager Reference to view manager.
viewColumns ViewLayoutStack Columns view element.
palette IPalette Local palette setting to use initially.
paletteMode PaletteMode Palette mode setting to use initially.
stateCommon PaletteContextMenuRedirect State used to provide common palette values.
stateDisabled PaletteContextMenuItemState State used to provide disabled palette values.
stateNormal PaletteContextMenuItemState State used to provide normal palette values.
stateHighlight PaletteContextMenuItemStateHighlight State used to provide highlight palette values.
stateChecked PaletteContextMenuItemStateChecked State used to provide checked palette values.
redirector PaletteRedirect Redirector used for obtaining palette values.
redirectorImages PaletteRedirectContextMenu Redirector used for obtaining images.
needPaintDelegate NeedPaintHandler Delegate for requesting paint changes.
enabled bool Enabled state of the context menu.
return System

OnClose() public method

Fires the Close event.
public OnClose ( CloseReasonEventArgs e ) : void
e 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 KryptonContextMenuItem Menu item that needs to show sub menu.
return bool

ProviderShowSubMenuFixedRect() public method

Should the sub menu be shown at fixed screen location for this menu item.
public ProviderShowSubMenuFixedRect ( KryptonContextMenuItem menuItem ) : Rectangle
menuItem KryptonContextMenuItem Menu item that needs to show sub menu.
return System.Drawing.Rectangle