System.Windows.Forms.ViewHelper.DrawRect C# (CSharp) Method

DrawRect() public method

public DrawRect ( RectangleF dirtyRect ) : void
dirtyRect System.Drawing.RectangleF
return void
		public override void DrawRect (RectangleF dirtyRect)
		{
		
			bool shouldDraw = true;
			using (var graphics = Graphics.FromHwnd (this.Handle))
			{
				var events = new PaintEventArgs (graphics, Rectangle.Round (dirtyRect));
				Host.Draw (events);
				shouldDraw = !events.Handled;
			}
			if (shouldDraw)
				base.DrawRect(dirtyRect);
		}
		/*