ComponentFactory.Krypton.Toolkit.PaletteRedirectDouble.GetBorderWidth C# (CSharp) Method

GetBorderWidth() public method

Gets the border width.
public GetBorderWidth ( PaletteBorderStyle style, PaletteState state ) : int
style PaletteBorderStyle Border style.
state PaletteState Palette value should be applicable to this state.
return int
        public override int GetBorderWidth(PaletteBorderStyle style, PaletteState state)
        {
            IPaletteDouble inherit = GetInherit(state);

            if (inherit != null)
                return inherit.PaletteBorder.GetBorderWidth(state);
            else
                return Target.GetBorderWidth(style, state);
        }