PreviewSentenceBounds Property
- Namespace
TXTextControl.Proofing
- Package
TXTextControl.asTXSpell. WPF. SDK TXSpell.from the private NuGet feed or Text Control Offline Packagesdll
- Also in
TXTextControl.asTXSpell. Core. SDK TXSpell.dll
Description
Gets a two values integer array that represents the start position and length of the sentence where the current word to correct is located. This property is redetermined on every change of the CurrentWordToCorrect property.
Syntax
public int[] PreviewSentenceBounds { get; }Public ReadOnly Property PreviewSentenceBounds As Integer()Examples
The following example iterates through the preview sentence bounds collection and processes each int32.
foreach (int int32 in previewHandler.PreviewSentenceBounds)
{
Console.WriteLine(int32);
}For Each int32 As Integer In previewHandler.PreviewSentenceBounds
Console.WriteLine(int32)
NextLimitations
Read only.
Remarks
This property only provides an array of sentence bounds if the SpellingCorrectionUIProvider's mode is set to SuggestionsCreated, NoSuggestionsCreated, WordToCorrectIsDuplicate or WordToCorrectEditing. Otherwise the value is null.