public override void PaintForeground(IVwGraphics vg, PaintTransform ptrans) { base.PaintForeground(vg, ptrans); PaintTransform childTrans = ptrans.PaintTransformOffsetBy(Left, Top); for (Box box = FirstVisibleBox(vg, ptrans); box != null && !IsAfterVisibleBoxes(box, vg, ptrans); box = box.Next) { //vg.PushClipRect(new Rect(box.Left, box.Top, box.Right, box.Bottom)); box.PaintForeground(vg, childTrans); } }