PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Jun 30, 2024 4:27 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Mar 21, 2013 10:52 am 
Offline

Joined: Wed Mar 20, 2013 1:02 pm
Posts: 8
Hi,

I am using Migra doc table to show text. I am facing a problem related to word-wrap in my table cell. When there is a long text table cell does not wrap it automatically. I got a solution on this form that insert soft hyphens between syllables. Can some one please help me to provide C# code to insert soft hyphens between syllables in a string.

Thanks in advance.

Warm Regards,
Naren


Top
 Profile  
Reply with quote  
PostPosted: Thu Mar 21, 2013 12:48 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3100
Location: Cologne, Germany
Hi!

The keystroke for the soft hyphen is Alt+0173 and can be used between '' if you need a char or inside "" if you need a string.

This code should also work:
Code:
char softhyphen = '\xad';

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 74 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group