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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

align text in pdf grid cell

Thread ID:

Created:

Updated:

Platform:

Replies:

119245 May 28,2015 03:23 PM UTC Jan 10,2017 05:50 AM UTC Windows Forms 3
loading
Tags: PDF
jb
Asked On May 28, 2015 03:23 PM UTC

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

Abirami Selvan [Syncfusion]
Replied On 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.

Ewen Wallace
Replied On 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;




Chinnu Muniyappan [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;