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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

PDF Font Style

Thread ID:





97197 Nov 8,2010 01:31 AM UTC Nov 9,2010 01:18 PM UTC ASP.NET Web Forms (Classic) 1
Tags: PDF
James Knowlton
Asked On November 8, 2010 01:31 AM UTC

Is there a way to set both BOLD and UNDERLINE at the same time for a table cell? Here is an example of my code to set the text BOLD, how can I adjust it to make it both BOLD and Underline:

Dim table_ As PdfLightTable = New PdfLightTable()
table_.DataSourceType = PdfLightTableDataSourceType.TableDirect

'make the table borders transparent
Dim borderPen_ As PdfPen = New PdfPen(Color.Transparent)
borderPen_.Width = 1.0F

'Create a default style for our table
Dim defStyle_ As PdfCellStyle = New PdfCellStyle()
defStyle_.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10, PdfFontStyle.Bold)
defStyle_.BorderPen = borderPen_

'set custom table style properties
table_.Style.DefaultStyle = defStyle_

Selvakumar P [Syncfusion]
Replied On November 9, 2010 01:18 PM UTC

Hi james,

Thank you for using Syncfusion Products.

It is possible to set the font style as both Bold and Underline in a PdfTable.Please look into the code snippet given below:

'Setting FontStyle as both Bold and Underline
defStyle_.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10, PdfFontStyle.Bold Or PdfFontStyle.Underline)

and also refer with the sample which we have posted,




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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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