Approved
Last Updated: 31 Oct 2018 07:51 by ADMIN
ADMIN
Petya
Created on: 28 Aug 2014 10:00
Category: RichTextBox
Type: Feature Request
9
RichTextBox: Implement support for Page/Paragraph borders
Add support for Paragraph and Page borders.

Note: Typing "---" in MS Word and pressing Enter inserts bottom paragraph border with special size (sz="6" in the docx format).

Workaround for inserting visually similar element:

Add a horizontal line using a table with a single border. Here is some code demonstrating how to do this:
----------------------------------------------------------
var document = new RadDocument();
var editor = new RadDocumentEditor(document);

Table table = new Table();
var topBorder = new Telerik.Windows.Documents.Model.Border(1, BorderStyle.Single, Colors.Red);
var borders = new TableBorders(table.Borders.Left, topBorder, table.Borders.Right, table.Borders.Bottom);
table.Borders = borders;

var row = new TableRow();
var dummyCell = new TableCell();
var dummyParagraph = new Paragraph();
dummyParagraph.FontSize = 0;
dummyParagraph.LineSpacing = 0;
dummyParagraph.SpacingAfter = 0;
dummyParagraph.SpacingBefore = 0;
dummyCell.Blocks.Add(dummyParagraph);
row.Cells.Add(dummyCell);
table.Rows.Add(row);

editor.InsertTable(table, shouldInsertParagraphBeforeTable: true);            
this.rtb.Document = document;
----------------------------------------------------
4 comments
ADMIN
Tanya
Posted on: 03 Jul 2018 14:42
Hello,

The task is currently not scheduled and I cannot say when it might be implemented. Make sure to cast your vote for it using the Like button and continue following this item so you can be notified when its status changes.

Regards,
Tanya
Xavier
Posted on: 02 Jul 2018 05:31
is this feature implemented?
Imported User
Posted on: 21 Jan 2016 10:04
Pragraph borders are important. Please implement it.
Tony
Posted on: 27 Feb 2015 05:56
Paragraph & Page borders are really required feature for Document generation system. Please implement it ASAP.