PaintBackground() публичный Метод

Any box knows how to paint its background. Some subclasses may override.
public PaintBackground ( IVwGraphics vg, PaintTransform ptrans ) : void
vg IVwGraphics
ptrans PaintTransform
Результат void
Пример #1
0
        public override void PaintBackground(IVwGraphics vg, PaintTransform ptrans)
        {
            base.PaintBackground(vg, ptrans);
            PaintTransform childTrans = ptrans.PaintTransformOffsetBy(Left, Top);

            for (Box box = FirstVisibleBox(vg, ptrans); box != null && !IsAfterVisibleBoxes(box, vg, ptrans); box = box.Next)
            {
                box.PaintBackground(vg, childTrans);
            }
        }