Is there a way to add a text background color to a Paragraph or TextRun
See original GitHub issueIs there a way to add a text background color to a Paragraph or TextRun.
Like we can do with tables:
table.getCell(0, 0).setShading({ fill: "42c5f4", color: "auto", })
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Apply shading to words or paragraphs - Microsoft Support
Add background colors to words and paragraphs in your documents. ... Under Theme Colors, click the color that you want to use to...
Read more >html - How do I set a background-color for the width of text, not ...
Put the text in an inline element, such as a <span> . ... And then apply the background color on the inline element....
Read more >How to Add a Background-Color for the Text Width Instead of ...
On this page, you will find how to set a background-color for the text width instead of the width of the entire element....
Read more >CharacterFormat.BackgroundColor Property - SautinSoft
Gets or sets the text background color. overrides . ... Add(p); // Create a formatted text (Run element) and add it into paragraph....
Read more >REST Resource: documents | Google Docs
textRun. object ( TextRun ). A text run paragraph element. autoText ... When setting a link, the text foreground color will be updated...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
coming soon!
I am working on that piece now
There is now on
5.0.0-rc5
!https://github.com/dolanmiu/docx/blob/master/demo/45-highlighting-text.ts https://github.com/dolanmiu/docx/blob/master/demo/46-shading-text.ts