System.Windows.Forms.TableViewHelper.DrawRow C# (CSharp) Method

DrawRow() public method

public DrawRow ( int row, Drawing clipRect ) : void
row int
clipRect Drawing
return void
		public override void DrawRow (int row, Drawing.RectangleF clipRect)
		{
			bool shouldDraw = true;
			using (var graphics = Graphics.FromHwnd (this.Handle))
			{	
				
				var events = new DrawItemEventArgs( graphics,this.Font.ToFont(), Rectangle.Round (clipRect),row,getState(row));
				if(Host is ListBox)
					((ListBox)Host).DrawItemInternal (events);				
				shouldDraw = !events.Handled;
			}
			if (shouldDraw)
				base.DrawRow (row, clipRect);
		}