About Set table line style

2 posts, 0 answers
  1. Yuanhong
    Yuanhong avatar
    11 posts
    Member since:
    Jan 2019

    Posted 15 Oct 2019 Link to this post

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




  2. Martin
    Admin
    Martin avatar
    41 posts

    Posted 17 Oct 2019 Link to this post

    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.
Back to Top