Share via


Document.LanguageDetected Property (2007 System)

Gets or sets a value that indicates whether Microsoft Office Word has detected the language of the text in the document.

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

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public Property LanguageDetected As Boolean
'Usage
Dim instance As Document 
Dim value As Boolean 

value = instance.LanguageDetected

instance.LanguageDetected = value
[BrowsableAttribute(false)]
public bool LanguageDetected { get; set; }
[BrowsableAttribute(false)]
public:
property bool LanguageDetected {
    bool get ();
    void set (bool value);
}
public function get LanguageDetected () : boolean 
public function set LanguageDetected (value : boolean)

Property Value

Type: System.Boolean
true if Word has detected the language of the document; otherwise, false.

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.

.NET Framework Security

See Also

Reference

Document Class

Document Members

Microsoft.Office.Tools.Word Namespace