TX Spell .NET for WPF

MaxSuggestions Property

Property|Introduced in 3.0
Namespace
TXTextControl.WPF.Proofing
Package
TXTextControl.TXSpell.WPF.SDK as TXSpell.WPF.dll from the private NuGet feed or Text Control Offline Packages

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 SuggestionList.MaxSuggestions to configure max suggestions as part of the suggestion list workflow. The configured value is checked before the workflow continues.

suggestionList.MaxSuggestions = 10;
Console.WriteLine($"Max Suggestions used by Suggestion List: {suggestionList.MaxSuggestions}");