DrawFlapArea() public static method

Draw a design area with a flap on the left hand edge.
public static DrawFlapArea ( 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)
        {
            // At design time we draw the selection flap
            if (_ribbon.InDesignHelperMode)
            {
                DesignTimeDraw.DrawFlapArea(_ribbon, context, ClientRectangle, State);
            }

            // Let base class draw contained items
            base.RenderBefore(context);
        }