We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

align text in pdf grid cell

Is there a way to align certain text at top of the cell and certain text at the bottom of a cell?

3 Replies

AS Abirami Selvan Syncfusion Team June 1, 2015 05:57 AM UTC

Hi Jb,

Thank you for using syncfusion product.

We don’t have native support to align the certain texts at top and bottom of the grid cell. We have  logged this feature in our data base. It can be tracked through our following Features Management System:
http://www.syncfusion.com/support/directtrac/features/WF-20900


However, We have created the workaround solution in below link :
http://www.syncfusion.com/downloads/support/forum/119245/ze/PdfGridSample96937853

Please try this and let us know if it suits your requirement.

Regards,
Abirami.


EW Ewen Wallace January 9, 2017 10:58 PM UTC

This worked for me...

PdfStringFormat centredText = new PdfStringFormat()
                                          {
                                              LineAlignment = PdfVerticalAlignment.Middle,
                                              Alignment =  PdfTextAlignment.Center
                                          };

..... 

thisNumberRow.Cells[digit].StringFormat = centredText;





CM Chinnu Muniyappan Syncfusion Team January 10, 2017 05:50 AM UTC

Hi Ewen, 
Thank you for your update, we will publish a KB article to achieve this query. 
Regards, 
Chinnu 


Loader.
Up arrow icon