/// <summary> /// Fills the inside of an rectangle. /// </summary> /// <param name="rect">The rectangle to fill.</param> public void FillRectangle(Rectangle rect) { _graphics.FillRectangle(FillBrush, rect.X, rect.Y, rect.Width, rect.Height); }
/// <summary> /// Draws a rectangle. /// </summary> /// <param name="rect">The rectangle to draw.</param> public void DrawRectangle(Rectangle rect) { _graphics.DrawRectangle(LinePen, rect.X, rect.Y, rect.Width, rect.Height); }