Share via


DocumentBase.Research Property

Definition

Gets the research service for the document.

public:
 property Microsoft::Office::Interop::Word::Research ^ Research { Microsoft::Office::Interop::Word::Research ^ get(); };
public Microsoft.Office.Interop.Word.Research Research { get; }
member this.Research : Microsoft.Office.Interop.Word.Research
Public ReadOnly Property Research As Research

Property Value

A Research object that represents the research service for the document.

Examples

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);
}
Private Sub SetTranslationLanguages()
    Me.Research.SetLanguagePair(Word.WdLanguageID.wdEnglishUS, _
                                Word.WdLanguageID.wdJapanese)
End Sub

Applies to