Number Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets the number of this misspelled word. All misspelled words are counted from the beginning to the end of a document. The first word has the number 1.
Syntax
public int Number { get; }Public ReadOnly Property Number As IntegerExamples
The following example locates the first spelling issue in a short document by using MisspelledWord.Number.
textControl.Text = "The quaterly report is ready.";
MisspelledWord misspelledWord = textControl.MisspelledWords.GetItem();
if (misspelledWord == null)
{
return;
}
Console.WriteLine($"Number: {misspelledWord.Number}");
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
Console.WriteLine($"Number: {misspelledWord.Number}")
Console.WriteLine("Misspelled Word is ready for use.")Limitations
Read only.