Unplanned
Last Updated: 29 Apr 2020 11:19 by ADMIN
Frank
Created on: 29 Apr 2020 09:46
Category: PdfProcessing
Type: Feature Request
1
PdfProcessing: Provide API for setting paragraph Borders
At this point, the setting paragraph Borders is not supported.

A possible workaround could be to draw a rectangle around the desired Block.

RadFixedDocument document = new RadFixedDocument();
RadFixedPage page = document.Pages.AddPage();
page.Size = new Size(600, 800);
FixedContentEditor editor = new FixedContentEditor(page);
editor.Position.Translate(defaultLeftIndent, 50);

Block block = new Block();
block.InsertText("PDF");

editor.DrawBlock(block);

Block border = new Block();
border.GraphicProperties.StrokeColor = RgbColors.Black;
border.GraphicProperties.IsFilled = false;
border.GraphicProperties.IsStroked = true;
border.GraphicProperties.StrokeThickness = 1;
border.InsertRectangle(new System.Windows.Rect(block.Measure()));

editor.DrawBlock(border);
0 comments