C# Class ComponentFactory.Krypton.Toolkit.KryptonContextMenuItem

Inheritance: KryptonContextMenuItemBase
Show file Open project: ComponentFactory/Krypton Class Usage Examples

Private Properties

Property Type Description
SetPaletteRedirect void
ShouldSerializeImageTransparentColor bool
ShouldSerializeStateChecked bool
ShouldSerializeStateDisabled bool
ShouldSerializeStateHighlight bool
ShouldSerializeStateNormal bool
this KryptonContextMenuItemBase

Public Methods

Method Description
GenerateView ( IContextMenuProvider provider, object parent, ViewLayoutStack columns, bool standardStyle, bool imageColumn ) : ViewBase

Returns a view appropriate for this item based on the object it is inside.

KryptonContextMenuItem ( ) : System

Initialize a new instance of the KryptonContextMenuItem class.

KryptonContextMenuItem ( string initialText ) : System

Initialize a new instance of the KryptonContextMenuItem class.

KryptonContextMenuItem ( string initialText, EventHandler clickHandler ) : System

Initialize a new instance of the KryptonContextMenuItem class.

KryptonContextMenuItem ( string initialText, EventHandler clickHandler, Keys shortcut ) : System

Initialize a new instance of the KryptonContextMenuItem class.

KryptonContextMenuItem ( string initialText, Image initialImage, EventHandler clickHandler ) : System

Initialize a new instance of the KryptonContextMenuItem class.

KryptonContextMenuItem ( string initialText, Image initialImage, EventHandler clickHandler, Keys shortcut ) : System

Initialize a new instance of the KryptonContextMenuItem class.

PerformClick ( ) : void

Generates a Click event for the component.

ProcessShortcut ( Keys keyData ) : bool

Test for the provided shortcut and perform relevant action if a match is found.

ToString ( ) : string

Returns a description of the instance.

Protected Methods

Method Description
OnCheckStateChanged ( EventArgs e ) : void

Raises the CheckStateChanged event.

OnCheckedChanged ( EventArgs e ) : void

Raises the CheckedChanged event.

OnClick ( EventArgs e ) : void

Raises the Click event.

Private Methods

Method Description
SetPaletteRedirect ( IContextMenuProvider provider ) : void
ShouldSerializeImageTransparentColor ( ) : bool
ShouldSerializeStateChecked ( ) : bool
ShouldSerializeStateDisabled ( ) : bool
ShouldSerializeStateHighlight ( ) : bool
ShouldSerializeStateNormal ( ) : bool
this ( int index ) : KryptonContextMenuItemBase

Method Details

GenerateView() public method

Returns a view appropriate for this item based on the object it is inside.
public GenerateView ( IContextMenuProvider provider, object parent, ViewLayoutStack columns, bool standardStyle, bool imageColumn ) : ViewBase
provider IContextMenuProvider Provider of context menu information.
parent object Owning object reference.
columns ViewLayoutStack Containing columns.
standardStyle bool Draw items with standard or alternate style.
imageColumn bool Draw an image background for the item images.
return ViewBase

KryptonContextMenuItem() public method

Initialize a new instance of the KryptonContextMenuItem class.
public KryptonContextMenuItem ( ) : System
return System

KryptonContextMenuItem() public method

Initialize a new instance of the KryptonContextMenuItem class.
public KryptonContextMenuItem ( string initialText ) : System
initialText string Initial text string.
return System

KryptonContextMenuItem() public method

Initialize a new instance of the KryptonContextMenuItem class.
public KryptonContextMenuItem ( string initialText, EventHandler clickHandler ) : System
initialText string Initial text string.
clickHandler EventHandler Click handler.
return System

KryptonContextMenuItem() public method

Initialize a new instance of the KryptonContextMenuItem class.
public KryptonContextMenuItem ( string initialText, EventHandler clickHandler, Keys shortcut ) : System
initialText string Initial text string.
clickHandler EventHandler Click handler.
shortcut Keys Shortcut key combination.
return System

KryptonContextMenuItem() public method

Initialize a new instance of the KryptonContextMenuItem class.
public KryptonContextMenuItem ( string initialText, Image initialImage, EventHandler clickHandler ) : System
initialText string Initial text string.
initialImage Image Initial image.
clickHandler EventHandler Click handler.
return System

KryptonContextMenuItem() public method

Initialize a new instance of the KryptonContextMenuItem class.
public KryptonContextMenuItem ( string initialText, Image initialImage, EventHandler clickHandler, Keys shortcut ) : System
initialText string Initial text string.
initialImage Image Initial image.
clickHandler EventHandler Click handler.
shortcut Keys Shortcut key combination.
return System

OnCheckStateChanged() protected method

Raises the CheckStateChanged event.
protected OnCheckStateChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data.
return void

OnCheckedChanged() protected method

Raises the CheckedChanged event.
protected OnCheckedChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data.
return void

OnClick() protected method

Raises the Click event.
protected OnClick ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data.
return void

PerformClick() public method

Generates a Click event for the component.
public PerformClick ( ) : void
return void

ProcessShortcut() public method

Test for the provided shortcut and perform relevant action if a match is found.
public ProcessShortcut ( Keys keyData ) : bool
keyData Keys Key data to check against shorcut definitions.
return bool

ToString() public method

Returns a description of the instance.
public ToString ( ) : string
return string