MetroFramework.Controls.MetroToggle.OnCustomPaintBackground C# (CSharp) Method

OnCustomPaintBackground() protected method

protected OnCustomPaintBackground ( MetroPaintEventArgs e ) : void
e MetroFramework.Drawing.MetroPaintEventArgs
return void
        protected virtual void OnCustomPaintBackground(MetroPaintEventArgs e)
        {
            if (GetStyle(ControlStyles.UserPaint) && CustomPaintBackground != null)
            {
                CustomPaintBackground(this, e);
            }
        }