ComponentFactory.Krypton.Toolkit.PaletteBackInheritOverride.GetBackDraw C# (CSharp) Method

GetBackDraw() public method

Gets a value indicating if background should be drawn.
public GetBackDraw ( PaletteState state ) : InheritBool
state PaletteState Palette value should be applicable to this state.
return InheritBool
        public override InheritBool GetBackDraw(PaletteState state)
        {
            if (_apply)
            {
                InheritBool ret = _primary.GetBackDraw(_override ? _state : state);

                if (ret == InheritBool.Inherit)
                    ret = _backup.GetBackDraw(state);

                return ret;
            }
            else
                return _backup.GetBackDraw(state);
        }