C# Class ComponentFactory.Krypton.Toolkit.ViewDrawMenuItem

Inheritance: ViewDrawCanvas
Datei anzeigen Open project: ComponentFactory/Krypton Class Usage Examples

Public Methods

Method Description
ClearSubMenu ( ) : void

Remove any showing context menu.

Close ( CloseReasonEventArgs e ) : void

Raises the Close event on the provider.

Closing ( CancelEventArgs cea ) : void

Raises the Closing event on the provider.

DisposeContextMenu ( ) : void

Request the showing context menu be disposed.

GetPreferredSize ( ViewLayoutContext context ) : Size

Discover the preferred size of the element.

Layout ( ViewLayoutContext context ) : void

Perform a layout of the elements.

PointInSubMenu ( Point pt ) : bool

Indicates whether the mouse point should show a sub menu.

ShowSubMenu ( bool keyboardActivated ) : void

Ask the menu item to show the associated child collection as a menu.

ToString ( ) : string

Obtains the String representation of this instance.

ViewDrawMenuItem ( IContextMenuProvider provider, KryptonContextMenuItem menuItem, ViewLayoutStack columns, bool standardStyle, bool imageColumn ) : System

Initialize a new instance of the ViewDrawMenuItem class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
OnCommandPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
OnContextMenuDisposed ( object sender, EventArgs e ) : void
OnPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
ViewDrawMenuItem ( ) : System

Method Details

ClearSubMenu() public method

Remove any showing context menu.
public ClearSubMenu ( ) : void
return void

Close() public method

Raises the Close event on the provider.
public Close ( CloseReasonEventArgs e ) : void
e CloseReasonEventArgs A CancelEventArgs containing the event data.
return void

Closing() public method

Raises the Closing event on the provider.
public Closing ( CancelEventArgs cea ) : void
cea CancelEventArgs A CancelEventArgs containing the event data.
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

DisposeContextMenu() public method

Request the showing context menu be disposed.
public DisposeContextMenu ( ) : void
return void

GetPreferredSize() public method

Discover the preferred size of the element.
public GetPreferredSize ( ViewLayoutContext context ) : Size
context ViewLayoutContext Layout context.
return System.Drawing.Size

Layout() public method

Perform a layout of the elements.
public Layout ( ViewLayoutContext context ) : void
context ViewLayoutContext Layout context.
return void

PointInSubMenu() public method

Indicates whether the mouse point should show a sub menu.
public PointInSubMenu ( Point pt ) : bool
pt Point
return bool

ShowSubMenu() public method

Ask the menu item to show the associated child collection as a menu.
public ShowSubMenu ( bool keyboardActivated ) : void
keyboardActivated bool
return void

ToString() public method

Obtains the String representation of this instance.
public ToString ( ) : string
return string

ViewDrawMenuItem() public method

Initialize a new instance of the ViewDrawMenuItem class.
public ViewDrawMenuItem ( IContextMenuProvider provider, KryptonContextMenuItem menuItem, ViewLayoutStack columns, bool standardStyle, bool imageColumn ) : System
provider IContextMenuProvider Provider of context menu information.
menuItem KryptonContextMenuItem Menu item definition.
columns ViewLayoutStack Containing columns.
standardStyle bool Draw items with standard or alternate style.
imageColumn bool Draw an image background for the item images.
return System