Is there a way to create a horizontal line in a document using the RadWordsProcessing API? I am looking for something similar to the Microsoft Word horizontal line that can be inserted by typing "---".
1 Answer, 1 is accepted
1
Accepted
Dimitar
Telerik team
answered on 25 Oct 2021, 07:26 AM
Hi Jack,
This is not supported out of the box at the moment. We have a feature request for it on our feedback portal. You can track its progress, subscribe to status changes, and add your comment to it here: WordsProcessing: Add support for a horizontal line.
A possible workaround could be to insert an empty table with a top border and decrease its size so that it looks like a single line.
Table table = document.Sections.First().Blocks.AddTable();
table.Borders = new TableBorders(null, new Border(BorderStyle.Thick), null, null);
table.PreferredWidth = new TableWidthUnit(TableWidthUnitType.Percent, 100);
Should you have any other questions do not hesitate to ask.
Regards,
Dimitar
Progress Telerik
Remote troubleshooting is now easier with Telerik Fiddler Jam. Get the full context to end-users' issues in just three steps! Start your trial here - https://www.telerik.com/fiddler-jam.