Thanks Gregory. That's exactly what I did and it worked perfectly.
- MM
1) in a loop (or in any other way), you create the resulting text with
default formatting.
2) at the same time, you record (in arrays)
- start/end positions of each string
- its TextFormat
3) When the result text
Hi Michael,
While I don't know the details of your application, I would consider
applying TextFormat only once, when all strings are added.
This means:
1) in a loop (or in any other way), you create the resulting text with
default formatting.
2) at the same time, you record (in arrays)
-
Mendelsohn, Michael wrote:
How can I preserve certain substrings of the text to keep their
assigned
TextFormats?
Before you add text to a text field that has a different format than
the default that you've specified (with setTextFormat), use
setNewTextFormat() on the field and then
3 matches
Mail list logo