Exemplo n.º 1
0
        protected void RenderBorder(IRendererPage page, Drawing.Pen pen)
        {
            if (pen == null)
            {
                return;
            }

            var region = this.PageRegion;

            page.RenderLine(region.TopLine(pen));
            page.RenderLine(region.RightLine(pen));
            page.RenderLine(region.BottomLine(pen));
            page.RenderLine(region.LeftLine(pen));
        }
Exemplo n.º 2
0
        private void RenderBorder(IRendererPage page, Rectangle region, bool isFirst, bool isLast, Drawing.Pen pen)
        {
            if (isFirst)
            {
                page.RenderLine(region.TopLine(pen));
            }

            page.RenderLine(region.RightLine(pen));

            if (isLast)
            {
                page.RenderLine(region.BottomLine(pen));
            }

            page.RenderLine(region.LeftLine(pen));
        }