Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
765
UltraFormattedTextEditor
posted

Hello,

i have the following problem:

I have a string
dim sTest as string = "AB" & Environment.NewLine & "CD"

and

UltraFormattedTextEditor.value = sTest

The result is
AB CD

and not
AB
CD

What ist here false?

Thank You
Ronald

 

  • 4625
    Verified Answer
    Offline posted

    Hello Ronald,

    Thank you for posting in our forums!

    There are two property related to displaying text in UltraFormattedTextEditor.

    In order to get advantage over the supported tags and attributes for manipulating the displayed text, you have to use the Value property.

    In your scenario, if you want to separate each string on a new line, wrap the text in paragraph tags (for the second text is optional):

    Me.UltraFormattedTextEditor1.Value = "<p>AB</p>" & "CD"

    The second way is to use the Text property, without any formatting information.

    Me.UltraFormattedTextEditor1.Text = "AB" & Environment.NewLine & "CD"

    If you have more questions, I will be happy to answer you.