Пример #1
0
        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);
        }
Пример #2
0
        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);
            }
        }