DrawArea() public static method

Draw a design area with a flap on the left hand edge.
public static DrawArea ( KryptonRibbon ribbon, RenderContext context, Rectangle clientRect, PaletteState state ) : void
ribbon KryptonRibbon Reference to owning ribbon control.
context ComponentFactory.Krypton.Toolkit.RenderContext Rendering context.
clientRect System.Drawing.Rectangle Client rectangle of the source view.
state PaletteState State of element.
return void
コード例 #1
0
        /// <summary>
        /// Perform rendering before child elements are rendered.
        /// </summary>
        /// <param name="context">Rendering context.</param>
        public override void RenderBefore(RenderContext context)
        {
            // Ensure the child text view has same state as us
            this[0].ElementState = ElementState;

            // Draw background using the design time colors
            DesignTimeDraw.DrawArea(_ribbon, context, ClientRectangle, State);

            base.RenderBefore(context);
        }