PreviewHandler Class
- Namespace
TXTextControl.Proofing
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTXSpell. WPF. SDK
- Assembly
TXSpell.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTXSpell. WPF. SDK TXSpell.from the setup.dll
- Also in
TXTextControl.asTXSpell. Core. SDK TXSpell.dll
- Implements
- INotify
Property Changed
Description
The PreviewHandler class provides properties which are necessary to construct an editable preview for a spelling correction user interface.
Syntax
public sealed class SpellingCorrectionUIProvider.PreviewHandler : INotifyPropertyChangedPublic NotInheritable Class SpellingCorrectionUIProvider.PreviewHandler
Implements INotifyPropertyChangedExamples
The following example includes the is preview sentence bounds enabled value from a Preview Handler object in application diagnostics. The created object is then available to the surrounding document workflow.
Console.WriteLine($"Is Preview Sentence Bounds Enabled: {previewHandler.IsPreviewSentenceBoundsEnabled}");
Console.WriteLine("Preview Handler is ready for use.");Console.WriteLine($"Is Preview Sentence Bounds Enabled: {previewHandler.IsPreviewSentenceBoundsEnabled}")
Console.WriteLine("Preview Handler is ready for use.")Members
Properties
| Property | Description |
|---|---|
| IsPreviewSentenceBoundsEnabled | Gets a value whether the PreviewSentenceBounds property is enabled to provide the sentence bounds for the current word to correct. |
| PreviewSentenceBounds | 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. |
Events
| Event | Description |
|---|---|
| PropertyChanged | Not described in the reference. public event PropertyChangedEventHandler PropertyChanged; |