Expand Minimize

DocumentBase.Research Property

Gets the research service for the document.

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

public Research Research { get; }

Property Value

Type: Microsoft.Office.Interop.Word.Research
A Research object that represents the research service for the document.

The following code example accesses the Research object of the document to set the default language pair that is used in the translation service. It sets English (US) as the language of the source text to translate from and Japanese as the language to translate the text to. The default translation languages appear in the Research pane in Word under the Translation section. To use this example, run it from the ThisDocument class in a document-level project.

private void SetTranslationLanguages()
{
    this.Research.SetLanguagePair(Word.WdLanguageID.wdEnglishUS, 
                                Word.WdLanguageID.wdJapanese);
}

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft