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
コード例 #1
0
ファイル: GroupBox.cs プロジェクト: cambell-prince/FieldWorks
        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);
            }
        }