TX Spell .NET for WPF

MaxSuggestions 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 or sets the maximum number of suggestions that has to be determined. The default value is 10.

Syntax

public int MaxSuggestions { get; set; }

Examples

The following example uses SuggestionsHandler.MaxSuggestions to configure max suggestions as part of the suggestions handler workflow. The configured value is checked before the workflow continues.

suggestionsHandler.MaxSuggestions = 10;
Console.WriteLine($"Max Suggestions used by Suggestions Handler: {suggestionsHandler.MaxSuggestions}");