C# Class ComponentFactory.Krypton.Ribbon.ViewDrawRibbonTab

Draws an individual RibbonTab.
Inheritance: ComponentFactory.Krypton.Toolkit.ViewComposite, IContentValues
Afficher le fichier Open project: ComponentFactory/Krypton Class Usage Examples

Méthodes publiques

Méthode Description
GetImage ( PaletteState state ) : Image

Gets the image used for the ribbon tab.

GetImageTransparentColor ( PaletteState state ) : Color

Gets the image color that should be interpreted as transparent.

GetLongText ( ) : string

Gets the long text used as the secondary ribbon title.

GetPreferredSize ( ViewLayoutContext context ) : Size

Discover the preferred size of the element.

GetShortText ( ) : string

Gets the short text used as the main ribbon title.

Layout ( ViewLayoutContext context ) : void

Perform a layout of the elements.

MakeDirty ( ) : void

Make dirty so cached values are not used.

RenderAfter ( RenderContext context ) : void

Perform rendering after child elements are rendered.

RenderBefore ( RenderContext context ) : void

Perform rendering before child elements are rendered.

ToString ( ) : string

Obtains the String representation of this instance.

ViewDrawRibbonTab ( KryptonRibbon ribbon, ViewLayoutRibbonTabs layoutTabs, NeedPaintHandler needPaint ) : System

Initialize a new instance of the ViewDrawRibbonTab class.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode Description
CheckPaletteState ( ViewContext context ) : void
OnTabClicked ( object sender, MouseEventArgs e ) : void
OnTabContextClicked ( object sender, MouseEventArgs e ) : void
OnTabPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
RenderAfter2010ContextTab ( RenderContext context, ContextTabSet cts ) : void
RenderBefore2007ContextTab ( RenderContext context, ContextTabSet cts ) : void
RenderBefore2010ContextTab ( RenderContext context, ContextTabSet cts ) : void
StateIndex ( PaletteState state ) : int
ViewDrawRibbonTab ( ) : System

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 image used for the ribbon tab.
public GetImage ( PaletteState state ) : Image
state PaletteState Tab state.
Résultat Image

GetImageTransparentColor() public méthode

Gets the image color that should be interpreted as transparent.
public GetImageTransparentColor ( PaletteState state ) : Color
state PaletteState Tab state.
Résultat Color

GetLongText() public méthode

Gets the long text used as the secondary ribbon title.
public GetLongText ( ) : string
Résultat string

GetPreferredSize() public méthode

Discover the preferred size of the element.
public GetPreferredSize ( ViewLayoutContext context ) : Size
context ComponentFactory.Krypton.Toolkit.ViewLayoutContext Layout context.
Résultat System.Drawing.Size

GetShortText() public méthode

Gets the short text used as the main ribbon title.
public GetShortText ( ) : string
Résultat string

Layout() public méthode

Perform a layout of the elements.
public Layout ( ViewLayoutContext context ) : void
context ComponentFactory.Krypton.Toolkit.ViewLayoutContext Layout context.
Résultat void

MakeDirty() public méthode

Make dirty so cached values are not used.
public MakeDirty ( ) : void
Résultat void

RenderAfter() public méthode

Perform rendering after child elements are rendered.
public RenderAfter ( RenderContext context ) : void
context ComponentFactory.Krypton.Toolkit.RenderContext Rendering context.
Résultat void

RenderBefore() public méthode

Perform rendering before child elements are rendered.
public RenderBefore ( 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

ViewDrawRibbonTab() public méthode

Initialize a new instance of the ViewDrawRibbonTab class.
public ViewDrawRibbonTab ( KryptonRibbon ribbon, ViewLayoutRibbonTabs layoutTabs, NeedPaintHandler needPaint ) : System
ribbon KryptonRibbon Reference to owning ribbon control.
layoutTabs ViewLayoutRibbonTabs Reference to view used for layout out tabs.
needPaint NeedPaintHandler Delegate for notifying paint requests.
Résultat System