C# Class ComponentFactory.Krypton.Ribbon.ViewDrawRibbonPanel

Draws the ribbon background panel.
Inheritance: ComponentFactory.Krypton.Toolkit.ViewDrawPanel
Show file Open project: ComponentFactory/Krypton

Private Properties

Property Type Description

Public Methods

Method Description
PaintRectangle ( Graphics g, Rectangle rect, bool edges, Control sender ) : void

Paint the provided rectangle.

RenderBefore ( RenderContext context ) : void

Perform rendering before child elements are rendered.

ViewDrawRibbonPanel ( KryptonRibbon ribbon, IPaletteBack paletteBack, NeedPaintHandler paintDelegate ) : System

Initialize a new instance of the ViewDrawRibbonPanel class.

Method Details

PaintRectangle() public method

Paint the provided rectangle.
public PaintRectangle ( Graphics g, Rectangle rect, bool edges, Control sender ) : void
g System.Drawing.Graphics Graphics to use for drawing.
rect System.Drawing.Rectangle Rectangle to be drawn.
edges bool True if the edges needs to be drawn.
sender System.Windows.Forms.Control Sender of the message..
return void

RenderBefore() public method

Perform rendering before child elements are rendered.
public RenderBefore ( RenderContext context ) : void
context ComponentFactory.Krypton.Toolkit.RenderContext Rendering context.
return void

ViewDrawRibbonPanel() public method

Initialize a new instance of the ViewDrawRibbonPanel class.
public ViewDrawRibbonPanel ( KryptonRibbon ribbon, IPaletteBack paletteBack, NeedPaintHandler paintDelegate ) : System
ribbon KryptonRibbon Reference to owning ribbon instance.
paletteBack IPaletteBack Reference to palette for obtaining background colors.
paintDelegate NeedPaintHandler Delegate for generating repaints.
return System