PaintForeground() public method

Any box knows how to paint itself. Most subclasses should override.
public PaintForeground ( IVwGraphics vg, PaintTransform ptrans ) : void
vg IVwGraphics
ptrans PaintTransform
return void
Exemplo n.º 1
0
        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);
            }
        }