private PaintBackground ( |
||
p | ||
rect | 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 |
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); //} } }