TX Text Control .NET for Windows Forms

IsLanguageDetectionEnabled Property

Property|Introduced in 21.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

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 TextControl through the SpellChecker property.

Syntax

public bool IsLanguageDetectionEnabled { get; set; }

Examples

The following example uses TextControl.IsLanguageDetectionEnabled to enable automatic language detection. The change is then applied to the active document or user interface.

textControl.IsLanguageDetectionEnabled = true;
textControl.Update();