SpellingChecked

Document.SpellingChecked property

RestituisceVERO se il documento è stato controllato per l’ortografia.

public bool SpellingChecked { get; set; }

Osservazioni

Per ricontrollare l’ortografia nel documento, impostare questa proprietà sufalso .

Esempi

Mostra come impostare la verifica ortografica o grammaticale.

Document doc = new Document();

// La stringa con errori di ortografia.
doc.FirstSection.Body.FirstParagraph.Runs.Add(new Run(doc, "The speeling in this documentz is all broked."));

// Il controllo ortografico/grammaticale inizia se impostiamo le proprietà su false.
// Possiamo vedere tutti gli errori in Microsoft Word tramite Revisione -> Ortografia e grammatica.
// Si noti che Microsoft Word non avvia automaticamente il controllo grammaticale/ortografia per i formati di documento DOC e RTF.
doc.SpellingChecked = checkSpellingGrammar;
doc.GrammarChecked = checkSpellingGrammar;

doc.Save(ArtifactsDir + "Document.SpellingOrGrammar.docx");

Guarda anche