Selection.LanguageDetected Property
Word Developer Reference |
Returns or sets a Boolean that specifies whether Microsoft Word has detected the language of the selected text.
Syntax
expression.LanguageDetected
expression Required. A variable that represents a Selection object.
Remarks
Check the LanguageID property for the results of any previous language detection.
The LanguageDetected property is set to True when the DetectLanguage method is called. To reevaluate the language of the specified text, you must first set the LanguageDetected property to False.
Example
This example checks the active document to determine the language it’s written in and then displays the result.
Visual Basic for Applications |
---|
|
See Also