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

GetBorderWidth() public method

Gets the border width.
public GetBorderWidth ( PaletteState state ) : int
state PaletteState Palette value should be applicable to this state.
return int
        public int GetBorderWidth(PaletteState state)
        {
            if (Width != -1)
                return Width;
            else
                return _inherit.GetBorderWidth(state);
        }

Usage Example

 /// <summary>
 /// Gets the border width.
 /// </summary>
 /// <param name="state">Palette value should be applicable to this state.</param>
 /// <returns>Border width.</returns>
 public int GetBorderWidth(PaletteState state)
 {
     if (Width != -1)
     {
         return(Width);
     }
     else
     {
         return(_inherit.GetBorderWidth(state));
     }
 }