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)); }
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)); }