Add lines in table cell.

2 posts, 0 answers
  1. Sandeep
    Sandeep avatar
    10 posts
    Member since:
    Nov 2014

    Posted 01 Dec 2014 Link to this post


    How can i add lines in table cell. Suppose i need to cut a triangle in table cell and need to fill different colors in triangle. 

    Can you provide some sample code.

  2. Deyan
    Deyan avatar
    158 posts

    Posted 02 Dec 2014 Link to this post

    Hello Sandeep,

    Thank you for contacting us.

    You can add some geometry in table cells by first adding a Block in table cell and then insert the desired geometry as block's content. You may find more detailed information in the "Inserting Geometries" section of this Block documentation article. Using this approach you will be able to add a path geometry of one color.

    If you need to add more complex geometry with multiple colors in table cell you will have to implement custom block element as shown in this IBlockElement forum post. In the Draw() method you should implement the logic for drawing the custom geometry using FixedContentEditor. You may find sample code for drawing geometries with FixedContentEditor in the DrawFunnelFigure() method on this link to PdfProcessing GenerateDocument SDK example

    I hope this is helpful.

    the Telerik team

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top