"Persistent" wordwrap?

  • I would like to use wprichedit as a "background worker": i get some rtf-data from an external source and want wprichedit to reformat this data. To do this, i set a specific page-width and wprichedit wraps the text as expected into several lines - looks fine on display.

    How can I access theese individual lines for further processing? I tried the property "lines", but they do not represent the lines I can see on the display.

    I this actually possible or am i on the wrong track?

    :-)

    kind regards,
    Dany

    • Offizieller Beitrag

    Hi,

    The property "Lines" was implemented to provide some kind of compatibility to a TMemo. Each "line" is in fact a paragraph here.

    You need to access

    par.Lines

    You can create a loop over all paragraphs and extract the lines.

    Example:

    Regards,
    Julian