System.Windows.Forms.ControlHelper.ClearColor C# (CSharp) Method

ClearColor() public static method

Sets button's back and border colors for normal and hover state to specified color.
public static ClearColor ( this button, Color clearColor ) : void
button this
clearColor Color
return void
        public static void ClearColor(this Button button, Color clearColor)
        {
            button.BackColor = clearColor;
            button.BorderColor = clearColor;
            button.HoverColor = clearColor;
            button.BorderHoverColor = clearColor;
            button.BorderSelectColor = clearColor;
        }