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

PaletteRibbonDoubleRedirect() public method

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

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

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

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