I am trying to change the background color (only for a few words) in a Word document.
I am using DocX (https://docx.codeplex.com/SourceControl/latest#Examples/Program.cs), but I cannot find any methods/properties which allow me to do so.
Here is my code:
var rb = new Formatting();
rb.UnderlineColor = this.GetResultColor(stu.RespectfulBehavior);
rb.FontColor = this.GetResultColor(stu.RespectfulBehavior);
templ.ReplaceText(PlaceHolders.RespectfulBehaviour.GetDisplayName(), " ", newFormatting: rb);