IsLanguageDetectionEnabled Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Gets or sets a value indicating whether language detection is active or not. If language detection is enabled, a language is automatically set for all pieces of text with a neutral language. To use this feature, at least the TXSpell 5.0 spell checking component must be connected with the WPF.TextControl through the SpellChecker property.
Syntax
public bool IsLanguageDetectionEnabled { get; set; }Public Property IsLanguageDetectionEnabled As BooleanExamples
The following example uses TextControl.IsLanguageDetectionEnabled to enable automatic language detection. The configured value is checked before the workflow continues.
textControl.IsLanguageDetectionEnabled = true;
if (textControl.IsLanguageDetectionEnabled)
{
Console.WriteLine("Text Control: Is Language Detection Enabled is enabled.");
}textControl.IsLanguageDetectionEnabled = True
If textControl.IsLanguageDetectionEnabled Then
Console.WriteLine("Text Control: Is Language Detection Enabled is enabled.")
End If