Range.GrammaticalErrors Property
Returns a ProofreadingErrors collection that represents the sentences that failed the grammar check on the specified range.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
Usage
Dim range1 As Range
Dim returnValue As ProofreadingErrors
returnValue = range1.GrammaticalErrors
Syntax
ReadOnly Property GrammaticalErrors() As ProofreadingErrors
ProofreadingErrors GrammaticalErrors {get;}
property ProofreadingErrors^ GrammaticalErrors{
ProofreadingErrors^ get();
}
public ProofreadingErrors get_GrammaticalErrors();
function get GrammaticalErrors() : ProofreadingErrors;
Remarks
There can be more than one error per sentence.
If there are no grammatical errors, the Count property for the ProofreadingErrors object returned by the GrammaticalErrors property returns 0 (zero).
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms
See Also
Reference
Range Interface
Microsoft.Office.Interop.Word Namespace