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

GetTabBackPath() public method

Generate a graphics path that encloses the border and is used when rendering a background to ensure the background does not draw over the border area.
public GetTabBackPath ( RenderContext context, Rectangle rect, IPaletteBorder palette, VisualOrientation orientation, PaletteState state, TabBorderStyle tabBorderStyle ) : GraphicsPath
context RenderContext Rendering context.
rect Rectangle Target rectangle.
palette IPaletteBorder Palette used for drawing.
orientation VisualOrientation Visual orientation of the border.
state PaletteState State associated with rendering.
tabBorderStyle TabBorderStyle Style of tab border.
return GraphicsPath
        public override GraphicsPath GetTabBackPath(RenderContext context,
                                                    Rectangle rect,
                                                    IPaletteBorder palette,
                                                    VisualOrientation orientation,
                                                    PaletteState state,
                                                    TabBorderStyle tabBorderStyle)
        {
            Debug.Assert(context != null);
            Debug.Assert(palette != null);

            // Validate parameter references
            if (context == null) throw new ArgumentNullException("context");
            if (palette == null) throw new ArgumentNullException("palette");

            Debug.Assert(context.Control != null);
            Debug.Assert(!context.Control.IsDisposed);

            // Use helper to create a border path in middle of the pen
            return CreateTabBorderBackPath(context.Control.RightToLeft, state, false, rect,
                                           palette.GetBorderWidth(state), tabBorderStyle, orientation,
                                           (palette.GetBorderGraphicsHint(state) == PaletteGraphicsHint.AntiAlias));
        }
RenderStandard