ComponentFactory.Krypton.Toolkit.PaletteBorderInheritOverride.GetBorderColor1 C# (CSharp) Method

GetBorderColor1() public method

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

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

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