ARCed.UI.DockPanel.OnPaint C# (CSharp) Méthode

OnPaint() protected méthode

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Résultat void
        protected override void OnPaint(PaintEventArgs e)
        {
            base.OnPaint(e);

            if (this.DockBackColor == BackColor) return;

            Graphics g = e.Graphics;
            var bgBrush = new SolidBrush(this.DockBackColor);
            g.FillRectangle(bgBrush, ClientRectangle);
        }