C# Class ComponentFactory.Krypton.Ribbon.ViewDrawRibbonGalleryItem

View element that represents a single gallery item.
Inheritance: ComponentFactory.Krypton.Toolkit.ViewDrawButton, IContentValues
Afficher le fichier Open project: ComponentFactory/Krypton Class Usage Examples

Méthodes publiques

Méthode 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 no longer tracked by the mouse.

ViewDrawRibbonGalleryItem ( ComponentFactory.Krypton.Ribbon.KryptonGallery gallery, IPaletteTriple palette, ViewLayoutRibbonGalleryItems layout, NeedPaintHandler needPaint ) : System

Initialize a new instance of the ViewDrawButton class.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode Description
OnItemClick ( object sender, MouseEventArgs e ) : void

Method Details

Dispose() protected méthode

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

GetImage() public méthode

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

GetImageTransparentColor() public méthode

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

GetLongText() public méthode

Gets the content long text.
public GetLongText ( ) : string
Résultat string

GetShortText() public méthode

Gets the content short text.
public GetShortText ( ) : string
Résultat string

Render() public méthode

Perform a render of the elements.
public Render ( RenderContext context ) : void
context ComponentFactory.Krypton.Toolkit.RenderContext Rendering context.
Résultat void

ToString() public méthode

Obtains the String representation of this instance.
public ToString ( ) : string
Résultat string

Track() public méthode

Item is becoming tracked by the mouse.
public Track ( ) : void
Résultat void

Untrack() public méthode

Item is no longer tracked by the mouse.
public Untrack ( ) : void
Résultat void

ViewDrawRibbonGalleryItem() public méthode

Initialize a new instance of the ViewDrawButton class.
public ViewDrawRibbonGalleryItem ( ComponentFactory.Krypton.Ribbon.KryptonGallery gallery, IPaletteTriple palette, ViewLayoutRibbonGalleryItems layout, NeedPaintHandler needPaint ) : System
gallery ComponentFactory.Krypton.Ribbon.KryptonGallery Owning gallery instance.
palette IPaletteTriple Palette used to recover values.
layout ViewLayoutRibbonGalleryItems Reference to item layout.
needPaint NeedPaintHandler Delegate for requesting paints.
Résultat System