public override void PaintValue(PaintValueEventArgs e) { CustomShape customShape = e.Value as CustomShape; if (customShape == null) { return; } using (GraphicsPath path = customShape.CreatePath(e.Bounds)) e.Graphics.DrawPath(Pens.Black, path); }
public override void PaintValue(PaintValueEventArgs e) { //base.PaintValue(e); CustomShape shape = e.Value as CustomShape; if (shape != null) { using (GraphicsPath path = shape.CreatePath(e.Bounds)) e.Graphics.DrawPath(Pens.Black, path); } }