Length Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets the length of a misspelled word.
Syntax
public int Length { get; }Public ReadOnly Property Length As IntegerExamples
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.");textControl.Text = "The quaterly report is ready."
Dim misspelledWord As MisspelledWord = textControl.MisspelledWords.GetItem()
If misspelledWord Is Nothing Then
Return
End If
textControl.Select(misspelledWord.Start, misspelledWord.Length)
Console.WriteLine("Misspelled Word is ready for use.")Limitations
Read only.