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

PaletteRibbonDouble() public method

Initialize a new instance of the PaletteRibbonDouble class.
public PaletteRibbonDouble ( IPaletteRibbonBack inheritBack, IPaletteRibbonText inheritText, NeedPaintHandler needPaint ) : System
inheritBack IPaletteRibbonBack Source for inheriting background values.
inheritText IPaletteRibbonText Source for inheriting text values.
needPaint NeedPaintHandler Delegate for notifying paint requests.
return System
        public PaletteRibbonDouble(IPaletteRibbonBack inheritBack,
                                   IPaletteRibbonText inheritText,
                                   NeedPaintHandler needPaint)
        {
            Debug.Assert(inheritBack != null);
            Debug.Assert(inheritText != null);

            // Remember inheritance
            _inheritBack = inheritBack;
            _inheritText = inheritText;

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

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