-
How do you get highlight to work in a characterStyle? I created some characterStyles like this:
The TextRun is like this (itemBullet is a paragraphStyle):
In the resulting .docx file, the "Remember" is tagged as having the character style of "Highlight", but the highlighting does not appear around the text. However, "Take Note", the text is colored red as expected. So, I'm wondering why is the highlighting not working? I have TextRuns that at times require yellow highlighting and at times needs other formatting applied in the same spot, or no special formatting at all. The easiest way to programmatically do this (I think) is to add a character style to the TextRun when needed. Any help would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Found a work-around. I used shading instead of highlight. I still think it would be nice if highlight was supported in charStyles. My code now looks like this:
|
Beta Was this translation helpful? Give feedback.
Found a work-around. I used shading instead of highlight. I still think it would be nice if highlight was supported in charStyles. My code now looks like this: