TX Spell .NET for Windows Forms

LanguageScope Class

Class|Introduced in 5.0
Namespace
TXTextControl.Proofing
Package
TXTextControl.TXSpell.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXSpell.dll
Install
dotnet add package TXTextControl.TXSpell.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXSpell.dll from the setup.
Also in
TXTextControl.TXSpell.Core.SDK as TXSpell.dll

Description

The LanguageScope class represents a text scope with a specific language.

Syntax

public sealed class LanguageScope

Examples

The following example includes the start value from a Language Scope object in application diagnostics. The created object is then available to the surrounding document workflow.

Console.WriteLine($"Start: {languageScope.Start}");
Console.WriteLine("Language Scope is ready for use.");

Members

Properties

PropertyDescription
IndexGets the index of the language scope to the corresponding collection. The first scope has the index 0.
LanguageGets the culture of the language scope.
LengthGets the length of the language scope.
StartGets the starting position of a language scope. It is a zero-based index of the word's first character.