Unplanned
Last Updated: 08 Dec 2022 11:53 by ADMIN
ADMIN
Petya
Created on: 28 Aug 2014 10:00
Category: RichTextBox
Type: Feature Request
14
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;
----------------------------------------------------
6 comments
ADMIN
Dimitar
Posted on: 08 Dec 2022 11:53

Hello Stefano,

Yes, this item was added a long time ago, Nevertheless, it has a lot of votes, and hopefully, it will be included on our roadmap soon. 

Regards,
Dimitar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Stefano
Posted on: 06 Dec 2022 08:03
Thanks! Just upvoted this. Seems like this won't be scheduled for a long time though.
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.