SuggestionsHandler Class
- Namespace
TXTextControl.Proofing
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTXSpell. WinForms. SDK
- Assembly
TXSpell.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTXSpell. WinForms. SDK TXSpell.from the setup.dll
- Also in
TXTextControl.asTXSpell. Core. SDK TXSpell.dll
- Implements
- INotify
Property Changed
Description
The SuggestionsHandler class provides properties which are necessary to modify and perceive a list of suggestions for correcting the current word to corrct in a spelling correction user interface.
Syntax
public sealed class SpellingCorrectionUIProvider.SuggestionsHandler : INotifyPropertyChangedPublic NotInheritable Class SpellingCorrectionUIProvider.SuggestionsHandler
Implements INotifyPropertyChangedExamples
The following example includes the is no suggestions item enabled value from a Suggestions Handler object in application diagnostics. The created object is then available to the surrounding document workflow.
Console.WriteLine($"Is No Suggestions Item Enabled: {suggestionsHandler.IsNoSuggestionsItemEnabled}");
Console.WriteLine("Suggestions Handler is ready for use.");Console.WriteLine($"Is No Suggestions Item Enabled: {suggestionsHandler.IsNoSuggestionsItemEnabled}")
Console.WriteLine("Suggestions Handler is ready for use.")Members
Properties
| Property | Description |
|---|---|
| IsNoSuggestionsItemEnabled | Gets or sets whether a message is inside the SpellingCorrectionUIProvider's suggestion list that informs the user that no suggestions could be created for the current word to correct. The default value is true. |
| IsSuggestionListEnabled | Gets a value whether the Suggestions property is enabled to create suggestions or not. |
| MaxSuggestions | Gets or sets the maximum number of suggestions that has to be determined. The default value is 10. |
| Suggestions | Gets an array of suggestions which are created based on the selected suggestions dictionaries. The maximum number of items depends on the MaxSuggestion property. |
Events
| Event | Description |
|---|---|
| PropertyChanged | Not described in the reference. public event PropertyChangedEventHandler PropertyChanged; |