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

GetBorderRounding() public method

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

                if (ret == -1)
                    ret = _backup.GetBorderRounding(state);

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