Label Text Wrapping

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Generator for .NET (v3 and older)  /  Label Text Wrapping

DynamicPDF Generator for .NET (v3 and older) Forum

 Jun 17 2015 2:27 PM
Hi,

I have some code to add text to a Label page element that works fine.

Occasionally the text that goes in the label has a dash (-) character in it and the text is too long for the label

(e.g. 'thisissomelonetexthereisadash-andthisnowwillgetwrapped').

Without the dash the Label just clips the excess text which is fine for my purposes. But when there is a dash I think it is wrapping the text to the next line, but the label is not (and shouldn't be) higher than 1 line in height.

Is there a property to turn the wrapping off?

Thanks.
 Jun 18 2015 3:23 PM
Posted by a ceTe Software moderator
Hello,

The behavior you are seeing is desired. A dash will cause the line to wrap. This is a common behavior in most of the text editors. There is no property available in the API that would allow you to disable wrapping. If you increase the label height you will see all the text that is wrapped.

Thanks,
ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 6:37 AM.