C# Class ComponentFactory.Krypton.Toolkit.ViewDrawMenuImageSelectItem

View element that represents a single gallery item.
Inheritance: ViewDrawButton, IContentValues
Datei anzeigen Open project: ComponentFactory/Krypton Class Usage Examples

Public Methods

Method Description
GetImage ( PaletteState state ) : Image

Gets the content image.

GetImageTransparentColor ( PaletteState state ) : Color

Gets the image color that should be transparent.

GetLongText ( ) : string

Gets the content long text.

GetShortText ( ) : string

Gets the content short text.

Render ( RenderContext context ) : void

Perform a render of the elements.

ToString ( ) : string

Obtains the String representation of this instance.

Track ( ) : void

Item is becoming tracked by the mouse.

Untrack ( ) : void

Item is becoming tracked by the mouse.

ViewDrawMenuImageSelectItem ( ViewContextMenuManager viewManager, KryptonContextMenuImageSelect imageSelect, IPaletteTriple palette, ViewLayoutMenuItemSelect layout, NeedPaintHandler needPaint ) : System

Initialize a new instance of the ViewDrawMenuImageSelectItem class.

Private Methods

Method Description
OnItemClick ( object sender, MouseEventArgs e ) : void

Method Details

GetImage() public method

Gets the content image.
public GetImage ( PaletteState state ) : Image
state PaletteState The state for which the image is needed.
return Image

GetImageTransparentColor() public method

Gets the image color that should be transparent.
public GetImageTransparentColor ( PaletteState state ) : Color
state PaletteState The state for which the image is needed.
return Color

GetLongText() public method

Gets the content long text.
public GetLongText ( ) : string
return string

GetShortText() public method

Gets the content short text.
public GetShortText ( ) : string
return string

Render() public method

Perform a render of the elements.
public Render ( RenderContext context ) : void
context RenderContext Rendering context.
return void

ToString() public method

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

Track() public method

Item is becoming tracked by the mouse.
public Track ( ) : void
return void

Untrack() public method

Item is becoming tracked by the mouse.
public Untrack ( ) : void
return void

ViewDrawMenuImageSelectItem() public method

Initialize a new instance of the ViewDrawMenuImageSelectItem class.
public ViewDrawMenuImageSelectItem ( ViewContextMenuManager viewManager, KryptonContextMenuImageSelect imageSelect, IPaletteTriple palette, ViewLayoutMenuItemSelect layout, NeedPaintHandler needPaint ) : System
viewManager ViewContextMenuManager Owning view manager instance.
imageSelect KryptonContextMenuImageSelect Owning image select instance.
palette IPaletteTriple Palette used to recover values.
layout ViewLayoutMenuItemSelect Reference to item layout.
needPaint NeedPaintHandler Delegate for requesting paints.
return System