コード例 #1
0
ファイル: PdfRenderer.cs プロジェクト: jps1974/SaveAsPdf
        public void RenderLineArea(LineArea area)
        {
            int rx = this.currentAreaContainerXPosition + area.getStartIndent();
            int ry = this.currentYPosition;
            int w  = area.getContentWidth();
            int h  = area.GetHeight();

            this.currentYPosition -= area.getPlacementOffset();
            this.currentXPosition  = rx;

            int bl = this.currentYPosition;

            foreach (Box b in area.getChildren())
            {
                if (b is InlineArea)
                {
                    InlineArea ia = (InlineArea)b;
                    this.currentYPosition = ry - ia.getYOffset();
                }
                else
                {
                    this.currentYPosition = ry - area.getPlacementOffset();
                }
                b.render(this);
            }

            this.currentYPosition = ry - h;
            this.currentXPosition = rx;
        }