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
430
"New Line" for WinFormattedTextEditor
posted

I've looked in the documentation for WinFormattedTextEditor and found that there is no HTML <br> tag equivalent. The only close tag provided is the <p></p> one; however this tag introduces one extra empty line between paragraphs which I don't want.

Is any way to obtain the HTML <br> tag  behaviour for this control?

 

  • 469350
    Verified Answer
    Offline posted

    Hi,

    Use "<br/>".

    For future reference, I figured this out by placing an UltraFormattedTextEditor control on a form and going to the Value property. I clicked on the ellipsis in the Visual Studio Properties window and this brings up the Formatted Text Editor dialog.

    Then I typed some text, pressed return, and typed some more text to create two lines of text with a line break.

    Then I switched to the "Edit Value as Raw Text" tab so I could see the generated XML.

    And in fact, once you switch to this tab, there is even a "BR" button on the toolbar. :)