_Application.CheckGrammar Method
Checks a string for grammatical errors.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Function CheckGrammar ( _
String As String _
) As Boolean
'Usage
Dim instance As _Application
Dim String As String
Dim returnValue As Boolean
returnValue = instance.CheckGrammar(String)
bool CheckGrammar(
string String
)
Parameters
- String
Type: System.String
Required String. The string you want to check for grammatical errors.
Return Value
Type: System.Boolean
Remarks
This method returns a Boolean to indicate whether the string contains grammatical errors. It returns True if the string contains no errors, and False if the string contains errors.