TranslatorControl.TextToTranslate Property


This property specifies the text to translate from one language to another. When the Translator Service receives a text, it will translate this text from the language specified in the LanguageFrom property to the language specified in the LanguageTo property. If LanguageFrom is not specified, Microsoft Translator will auto-detect the language to translate from.

To get the list of languages, use the TranslatorLibrary.GetLanguagesAsync() Method

Published date: October 21, 2013

public string TextToTranslate { get; set }
<Translator:TranslatorControl TextToTranslate="How do you do?" .../>

Type: System.String

The text to be translated.

If the origin of the text to translate is unknown, you may want leave the LanguageFrom property unspecified, in order to have Translator detect the language automatically.


Minimum Supported Client

Windows 8.1

Required Extensions

Bing Translator Control