TpTrayUtility.Components.TpScrollBar.OnPaintBackground C# (CSharp) Method

OnPaintBackground() protected method

protected OnPaintBackground ( PaintEventArgs e ) : void
e PaintEventArgs
return void
		protected override void OnPaintBackground(PaintEventArgs e)
		{
			using (
				var brush = new LinearGradientBrush(new Point(0, 0), new Point(Width, 0), Color.Gray,
				                                    Color.FromArgb(255, 48, 48, 48)))
			{
				e.Graphics.FillRectangle(brush, 0, 0, Width, Height);
			}

			using (var pen = new Pen(Color.FromArgb(255, 36, 36, 36)))
			{
				e.Graphics.DrawRectangle(pen, 0, 0, Width - 1, Height - 1);
			}
		}