ComponentFactory.Krypton.Toolkit.PaletteElementColorInheritOverride.GetElementColor5 C# (CSharp) Method

GetElementColor5() public method

Gets the fifth color for the element.
public GetElementColor5 ( PaletteState state ) : Color
state PaletteState Palette value should be applicable to this state.
return Color
        public override Color GetElementColor5(PaletteState state)
        {
            if (_apply)
            {
                Color ret = _primary.GetElementColor5(_override ? _state : state);

                if (ret == Color.Empty)
                    ret = _backup.GetElementColor5(state);

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