TX Spell .NET for WPF

PreviewSentenceBounds Property

Property|Introduced in 6.0
Namespace
TXTextControl.Proofing
Package
TXTextControl.TXSpell.WPF.SDK as TXSpell.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TXSpell.Core.SDK as 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; }

Examples

The following example iterates through the preview sentence bounds collection and processes each int32.

foreach (int int32 in previewHandler.PreviewSentenceBounds)
{
    Console.WriteLine(int32);
}

Limitations

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.