Start Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets the starting position of a misspelled word. It is a one-based index of the word's first character.
Syntax
public int Start { get; }Public ReadOnly Property Start As IntegerExamples
The following example locates the first spelling issue in a short document by using MisspelledWord.Start.
textControl.Text = "The quaterly report is ready.";
MisspelledWord misspelledWord = textControl.MisspelledWords.GetItem();
if (misspelledWord == null)
{
return;
}
textControl.InputPosition = new InputPosition(misspelledWord.Start);
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.InputPosition = New InputPosition(misspelledWord.Start)
Console.WriteLine("Misspelled Word is ready for use.")Limitations
Read only.