Beispiel #1
0
        public override void Render(IRendererPage page)
        {
            if (_textStyle.Background != System.Drawing.Color.Empty)
            {
                page.RenderRectangle(_lineRegion, _textStyle.Background);
            }

            var layout = new Rectangle(this.Position.Offset, this.Size);

            page.RenderText(_content, _textStyle, layout);

            this.RenderBorder(page, page.Options.WordBorders);
        }
Beispiel #2
0
        public override void Render(IRendererPage page)
        {
            if (_textStyle.Background != System.Drawing.Color.Empty)
            {
                page.RenderRectangle(_lineRegion, _textStyle.Background);
            }

            var s = page.Options.HiddenChars && !string.IsNullOrEmpty(_hiddenContent)
                ? _hiddenContent
                : _content;

            var layout = new Rectangle(this.Position.Offset, this.Size);

            page.RenderText(s, _textStyle, layout);

            this.RenderBorder(page, page.Options.WordBorders);
        }