C# Class ComponentFactory.Krypton.Toolkit.KryptonContextMenuColorColumns

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

Private Properties

Property Type Description
SetColorScheme void
this KryptonContextMenuItemBase

Public Methods

Method Description
ContainsColor ( Color color ) : bool

Does the provided color exist in the definition.

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.

KryptonContextMenuColorColumns ( ) : System

Initialize a new instance of the KryptonContextMenuColorColumns class.

KryptonContextMenuColorColumns ( ColorScheme scheme ) : System

Initialize a new instance of the KryptonContextMenuColorColumns class.

ProcessShortcut ( Keys keyData ) : bool

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

SetCustomColors ( Color colors ) : void

Define a custom set of colors for display.

ToString ( ) : string

Returns a description of the instance.

Protected Methods

Method Description
OnSelectedColorChanged ( ColorEventArgs e ) : void

Raises the SelectedColorChanged event.

OnTrackingColor ( ColorEventArgs e ) : void

Raises the TrackingColor event.

Private Methods

Method Description
SetColorScheme ( ColorScheme scheme ) : void
this ( int index ) : KryptonContextMenuItemBase

Method Details

ContainsColor() public method

Does the provided color exist in the definition.
public ContainsColor ( Color color ) : bool
color Color Color to find.
return bool

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

KryptonContextMenuColorColumns() public method

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

KryptonContextMenuColorColumns() public method

Initialize a new instance of the KryptonContextMenuColorColumns class.
public KryptonContextMenuColorColumns ( ColorScheme scheme ) : System
scheme ColorScheme Required color scheme of colors.
return System

OnSelectedColorChanged() protected method

Raises the SelectedColorChanged event.
protected OnSelectedColorChanged ( ColorEventArgs e ) : void
e ColorEventArgs An ColorEventArgs that contains the event data.
return void

OnTrackingColor() protected method

Raises the TrackingColor event.
protected OnTrackingColor ( ColorEventArgs e ) : void
e ColorEventArgs An ColorEventArgs that contains the event data.
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

SetCustomColors() public method

Define a custom set of colors for display.
public SetCustomColors ( Color colors ) : void
colors Color An array of color arrays, each of which must be the same length.
return void

ToString() public method

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