ComponentFactory.Krypton.Toolkit.PaletteRibbonBackRedirect.PaletteRibbonBackRedirect C# (CSharp) Method

PaletteRibbonBackRedirect() public method

Initialize a new instance of the PaletteRibbonBackRedirect class.
public PaletteRibbonBackRedirect ( PaletteRedirect redirect, PaletteRibbonBackStyle backStyle, NeedPaintHandler needPaint ) : System
redirect PaletteRedirect Inheritence redirection instance.
backStyle PaletteRibbonBackStyle Inheritence ribbon back style.
needPaint NeedPaintHandler Delegate for notifying paint requests.
return System
        public PaletteRibbonBackRedirect(PaletteRedirect redirect,
                                         PaletteRibbonBackStyle backStyle,
                                         NeedPaintHandler needPaint)
        {
            Debug.Assert(redirect != null);

            // Store the provided paint notification delegate
            NeedPaint = needPaint;

            // Store the inherit instances
            _inheritBack = new PaletteRibbonBackInheritRedirect(redirect, backStyle);

            // Define default values
            _backColor1 = Color.Empty;
            _backColor2 = Color.Empty;
            _backColor3 = Color.Empty;
            _backColor4 = Color.Empty;
            _backColor5 = Color.Empty;
        }