TX Text Control .NET Server

Culture Property

Property|Introduced in 20.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Gets the culture of the misspelled word. If there is no specific culture, the property value is null.

Syntax

public CultureInfo Culture { get; }

Examples

The following example locates the first spelling issue in a short document by using MisspelledWord.Culture.

textControl.Text = "The quaterly report is ready.";
MisspelledWord misspelledWord = textControl.MisspelledWords.GetItem();
if (misspelledWord == null)
{
    return;
}

Console.WriteLine($"Culture: {misspelledWord.Culture}");
Console.WriteLine("Misspelled Word is ready for use.");

Limitations

Read only.