ComponentFactory.Krypton.Toolkit.ViewDrawCanvas.RenderBorder C# (CSharp) Method

RenderBorder() public method

Draw the canvas border.
public RenderBorder ( RenderContext context ) : void
context RenderContext
return void
        public virtual void RenderBorder(RenderContext context)
        {
            Debug.Assert(context != null);

            // Do we need to draw the border?
            if (_paletteBorder.GetBorderDraw(State) == InheritBool.True)
            {
                // Render the border over the background and children
                if (DrawTabBorder)
                    context.Renderer.RenderTabBorder.DrawTabBorder(context, ClientRectangle, _paletteBorder, _orientation, State, TabBorderStyle);
                else
                    context.Renderer.RenderStandardBorder.DrawBorder(context, ClientRectangle, _paletteBorder, _orientation, State);
            }
        }