共用方式為


DocumentBase.ShowSpellingErrors Property

Gets or sets a value that indicates whether Microsoft Office Word underlines spelling errors in the document.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

Syntax

'Declaration
Public Property ShowSpellingErrors As Boolean
public bool ShowSpellingErrors { get; set; }

Property Value

Type: System.Boolean
true if Microsoft Office Word underlines spelling errors in the document; otherwise, false.

Remarks

To view spelling errors in a document, you must set the CheckSpellingAsYouType property to true.

.NET Framework Security

See Also

Reference

DocumentBase Class

Microsoft.Office.Tools.Word Namespace