PaintBackground() private method

Paints the background of the box
private PaintBackground ( PaintVisitor p, RectangleF rect, bool isFirst, bool isLast ) : void
p PaintVisitor
rect PixelFarm.Drawing.RectangleF the bounding rectangle to draw in
isFirst bool is it the first rectangle of the element
isLast bool is it the last rectangle of the element
return void
Example #1
0
 internal void PaintBackgroundAndBorder(PaintVisitor p)
 {
     //iterate each strip
     //if (_bottomUpBoxStrips == null)
     //{
     //    return;
     //}
     for (int i = _bottomUpBoxStrips.Length - 1; i >= 0; --i)
     {
         PartialBoxStrip strip      = _bottomUpBoxStrips[i];
         CssBox          stripOwner = strip.owner;
         if (!stripOwner.HasVisibleBgColor)
         {
             continue;
         }
         //-----------------------------------------------------------------
         RectangleF stripArea = strip.Bound;
         bool       isFirstLine, isLastLine;
         CssBox.GetSplitInfo(stripOwner, this, out isFirstLine, out isLastLine);
         stripOwner.PaintBackground(p, stripArea, isFirstLine, isLastLine);
         //if (stripOwner.CssDisplay != Css.CssDisplay.TableCell
         //    && stripOwner.HasSomeVisibleBorder)
         //{
         //    p.PaintBorders(stripOwner, stripArea, isFirstLine, isLastLine);
         //}
     }
 }