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

GetElementColor3() public method

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

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

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