This is a migrated thread and some comments may be shown as answers.

Underline and Strikethrough support for BLOCK

1 Answer 40 Views
PdfProcessing
This is a migrated thread and some comments may be shown as answers.
jaipal
Top achievements
Rank 1
jaipal asked on 20 Apr 2018, 07:26 PM

Greetings All,

Is there any way that the text that i am entrering into Block can be formated for Underline and Strikethrough .

 

I was able to achieve other properties like Bold , Italix with statements like 

block testblock =testCell.Blocks.AddBlock();

testblock. TextProperties.Font = FontsRepository.TimesItalic;

 

 

1 Answer, 1 is accepted

Sort by
0
Anna
Telerik team
answered on 24 Apr 2018, 12:58 PM
Hello,

You can add underline to the text using the TextProperties property like so:

block.TextProperties.UnderlinePattern = UnderlinePattern.Single;
block.TextProperties.UnderlineColor = new RgbColor(0, 0, 0);

Strikethrough is currently not supported, and I am going to add it to our backlog. You can find the item in our Feedback and Ideas Portal here, and you can upvote and subscribe to it, in order to receive notifications about any developments.

Regards,
Anna
Progress Telerik

Tags
PdfProcessing
Asked by
jaipal
Top achievements
Rank 1
Answers by
Anna
Telerik team
Share this question
or