TX Text Control .NET Server

Length Property

Property|Introduced in 16.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 length of a misspelled word.

Syntax

public int Length { get; }

Examples

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

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

textControl.Select(misspelledWord.Start, misspelledWord.Length);
Console.WriteLine("Misspelled Word is ready for use.");

Limitations

Read only.