PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

How to insert soft-hyphens between syllables in a string
https://forum.pdfsharp.net/viewtopic.php?f=2&t=2378
Page 1 of 1

Author:  er.narendraojha [ Thu Mar 21, 2013 10:52 am ]
Post subject:  How to insert soft-hyphens between syllables in a string

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

Author:  Thomas Hoevel [ Thu Mar 21, 2013 12:48 pm ]
Post subject:  Re: How to insert soft-hyphens between syllables in a string

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';

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/