ComponentFactory.Krypton.Toolkit.PaletteContentInheritOverride.GetContentAdjacentGap C# (CSharp) Method

GetContentAdjacentGap() public method

Gets the padding between adjacent content items.
public GetContentAdjacentGap ( PaletteState state ) : int
state PaletteState Palette value should be applicable to this state.
return int
        public override int GetContentAdjacentGap(PaletteState state)
        {
            if (_apply)
            {
                int ret = _primary.GetContentAdjacentGap(_override ? _state : state);

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

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