ComponentFactory.Krypton.Toolkit.PaletteBorderInheritForced.GetBorderDrawBorders C# (CSharp) Method

GetBorderDrawBorders() public method

Gets a value indicating which borders to draw.
public GetBorderDrawBorders ( PaletteState state ) : PaletteDrawBorders
state PaletteState Palette value should be applicable to this state.
return PaletteDrawBorders
        public override PaletteDrawBorders GetBorderDrawBorders(PaletteState state)
        {
            if (_forceBorders)
                return _forceBorderEdges;
            else
            {
                // If no border edges are allowed then provide none
                if ((_maxBorderEdges == PaletteDrawBorders.None) || (_borderIgnoreNormal && (state == PaletteState.Normal)))
                    return PaletteDrawBorders.None;
                else
                {
                    // Get the requested set of edges
                    PaletteDrawBorders inheritEdges = _inherit.GetBorderDrawBorders(state);

                    // Limit the edges to those allowed
                    return (inheritEdges & _maxBorderEdges);
                }
            }
        }