Hello,
How can I set a soft return within a paragraph area (<p>..</p>) of a FormattedTextArea or within the text of a TextArea?
(There should be less space between the lines if it's a soft return.)
Thanks!
(Formatted)TextArea - Soft vs. Hard return
Re: (Formatted)TextArea - Soft vs. Hard return
Support · Dec 10, 2009Hello,
What exactly you mean by soft return? Please be more specific about the requirement you have so that we can help you further.
If you want to set the gap between the lines then you can use the Leading property of the TextArea when using the TextArea element to change the distance between lines.
You can set the leading for the FormattedTextArea also using the Line tag or by the Line properties of the FormattedTextAreaStyle object. But this will be applied for the whole area and not for specific <p> tag.
Thanks,
ceTe Software Support Team.
Re: (Formatted)TextArea - Soft vs. Hard return
Forum member · Dec 10, 2009I'd like to define a different leading for the line and paragraph separator. Or in other words, I'd like to enforce a line feed (LF, \n) within a paragraph.
For example:
"<p>This is a paragraph.\n And a new line.</p>
<p>This is a second paragraph.</p>"
The leading between "This is a paragraph." and "And a new line." should be smaller than the space between the two paragraphs.
I'm using the following style object:
FontFamily fontFam = new FontFamily(..);
FormattedTextAreaStyle style = new FormattedTextAreaStyle(fontFam, 9, true);
style.Paragraph.SpacingAfter = 10;
style.Line.LeadingType = LineLeadingType.Exactly;
style.Line.Leading = 10.8f;
I hope this explanation is little bit better ..
Re: (Formatted)TextArea - Soft vs. Hard return
Support · Dec 10, 2009Hello,
We will look into this scenario and we will forward this to the developers to look into it further to achieve your requirement. We will post a message as soon as we have any information from them.
Thanks,
ceTe Software Support Team.
Re: (Formatted)TextArea - Soft vs. Hard return
Support · Aug 27, 2010Hello,
You can use the <br> tag instead of the \n for a new line. Please use the <br> tag and the latest build of our product and this will solve your problem. You can get the latest build from our CustomerArea
by logging in using your current product serial number. If this does not solve your problem then please send an email to our [^a|mailto:support@cete.com|Support Team^] team mentioning the version of our product you are using so that they can give you the latest build with fix.
Thanks,
ceTe Software Support Team.