SIL.FieldWorks.SharpViews.Box.PaintForeground C# (CSharp) Method

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
		public virtual void PaintForeground(IVwGraphics vg, PaintTransform ptrans)
		{
		}

Usage Example

Example #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);
            }
        }