System.Windows.Forms.TabControl.TabPageButton.OnPaint C# (CSharp) Method

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void
            protected override void OnPaint(PaintEventArgs e)
            {
                base.OnPaint(e);

                // Draw borders.
                var borderPen = new Pen(owner.BorderColor);
                e.Graphics.DrawLine(borderPen, 0, 0, Width, 0); // Top.
                e.Graphics.DrawLine(borderPen, 0, 0, 0, Height - 1); // Left.
                e.Graphics.DrawLine(borderPen, Width - 1, 0, Width - 1, Height - 1); // Right.
                if (hidden == false)
                {

                }
                else
                {

                }
            }