This is a migrated thread and some comments may be shown as answers.

About Set table line style

1 Answer 358 Views
WordsProcessing
This is a migrated thread and some comments may be shown as answers.
Yuanhong
Top achievements
Rank 1
Yuanhong asked on 15 Oct 2019, 07:36 AM

I want to set table line style like this attachment. How Can I set this table line style?




1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 17 Oct 2019, 08:42 AM

Hello Yuanhong,

If I understand your scenario correctly, you would like to set table border styles, am I right? If so, you can check the Table help topic to see how to insert and how to modify a table (and all the exposed properties which can help to modify a table). More info on how to use table properties can be found in Style Properties article.

This is a simple example how to create a section and insert it into a RadFlowDocument, then creating a table and add it to this section and finally how to set the BorderStyle (check all the possible types of the style border) of all the TableBorders to dotted:

Section section = new Section(radFlowDocument);
radFlowDocument.Sections.Add(section);

Table table = new Table(radFlowDocument, 5, 5);
section.Blocks.Insert(0, table);

Border border = new Border(BorderStyle.Dotted);
table.Borders = new TableBorders(border);
The TableBorders class provides several constructors that allow to set the table borders to one style or each border to different style.

If the provided information doesn't solve your case, please, give us more information about the requirements and the expected results.

 

Regards,
Martin
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
WordsProcessing
Asked by
Yuanhong
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or