highlightColor property
Font.highlightColor property
Gets or sets the highlight (marker) color.
get highlightColor(): string
Examples
Shows how to format a run of text using its font property.
let doc = new aw.Document();
let run = new aw.Run(doc, "Hello world!");
let font = run.font;
font.name = "Courier New";
font.size = 36;
font.highlightColor = "#FFFF00";
doc.firstSection.body.firstParagraph.appendChild(run);
doc.save(base.artifactsDir + "Font.CreateFormattedRun.docx");
See Also
- module Aspose.Words
- class Font