PaintDecoration() приватный Метод

private PaintDecoration ( Canvas g, RectangleF rectangle, bool isFirst, bool isLast ) : void
g PixelFarm.Drawing.Canvas
rectangle PixelFarm.Drawing.RectangleF
isFirst bool
isLast bool
Результат void
Пример #1
0
 internal void PaintDecoration(PaintVisitor p)
 {
     for (int i = _bottomUpBoxStrips.Length - 1; i >= 0; --i)
     {
         PartialBoxStrip strip    = _bottomUpBoxStrips[i];
         CssBox          ownerBox = strip.owner;
         CssBox.GetSplitInfo(ownerBox, this, out bool isFirstLine, out bool isLastLine);
         ownerBox.PaintDecoration(p.InnerDrawBoard, strip.Bounds, isFirstLine, isLastLine);
     }
 }
Пример #2
0
 internal void PaintDecoration(PaintVisitor p)
 {
     //if (_bottomUpBoxStrips == null)
     //{
     //    return;
     //}
     for (int i = _bottomUpBoxStrips.Length - 1; i >= 0; --i)
     {
         var    strip = _bottomUpBoxStrips[i];
         CssBox ownerBox = strip.owner;
         bool   isFirstLine, isLastLine;
         CssBox.GetSplitInfo(ownerBox, this, out isFirstLine, out isLastLine);
         ownerBox.PaintDecoration(p.InnerCanvas, strip.Bound, isFirstLine, isLastLine);
     }
 }