noProofing property

Font.noProofing property

True when the formatted characters are not to be spell checked.

get noProofing(): boolean

Examples

Shows how to prevent text from being spell checked by Microsoft Word.

let doc = new aw.Document();
let builder = new aw.DocumentBuilder(doc);

// Normally, Microsoft Word emphasizes spelling errors with a jagged red underline.
// We can un-set the "NoProofing" flag to create a portion of text that
// bypasses the spell checker while completely disabling it.
builder.font.noProofing = true;

builder.writeln("Proofing has been disabled, so these spelking errrs will not display red lines underneath.");

doc.save(base.artifactsDir + "Font.noProofing.docx");

See Also