ComponentFactory.Krypton.Toolkit.RenderStandard.DrawRibbonClusterEdge C# (CSharp) Method

DrawRibbonClusterEdge() public method

Perform drawing of a ribbon cluster edge.
public DrawRibbonClusterEdge ( PaletteRibbonShape shape, RenderContext context, Rectangle displayRect, IPaletteBack paletteBack, PaletteState state ) : void
shape PaletteRibbonShape Ribbon shape.
context RenderContext Render context.
displayRect System.Drawing.Rectangle Display area available for drawing.
paletteBack IPaletteBack Palette used for recovering drawing details.
state PaletteState State associated with rendering.
return void
        public override void DrawRibbonClusterEdge(PaletteRibbonShape shape,
                                                   RenderContext context,
                                                   Rectangle displayRect,
                                                   IPaletteBack paletteBack,
                                                   PaletteState state)
        {
            Debug.Assert(context != null);
            Debug.Assert(paletteBack != null);

            // Draw inside of the border edge in a lighter version of the border
            using (SolidBrush drawBrush = new SolidBrush(paletteBack.GetBackColor1(state)))
                context.Graphics.FillRectangle(drawBrush, displayRect);
        }
RenderStandard