/// <summary> /// Draw a plus/minus/zero inside a rectangle. /// </summary> /// <param name="g"></param> /// <param name="view"></param> /// <remarks> /// If <see cref="P:Northwoods.Go.GoCollapsibleHandle.Bordered" /> is true, this draws a rounded rectangle. /// Then it calls <see cref="M:Northwoods.Go.GoCollapsibleHandle.PaintHandle(System.Drawing.Graphics,Northwoods.Go.GoView)" />. /// </remarks> public override void Paint(Graphics g, GoView view) { RectangleF bounds = Bounds; SizeF corner = Corner; if (Bordered) { Pen pen = GoShape.NewPen(GoShape.GetPenColor(Pen, Color.Black), 1f); GoShape.DrawRoundedRectangle(g, view, pen, Brush, bounds.X, bounds.Y, bounds.Width, bounds.Height, corner.Width, corner.Height); pen.Dispose(); } else { GoShape.DrawRoundedRectangle(g, view, null, Brush, bounds.X, bounds.Y, bounds.Width, bounds.Height, corner.Width, corner.Height); } PaintHandle(g, view); }