# SpellingCorrectionUIProvider.SuggestionsHandler.MaxSuggestions Property

> Gets or sets the maximum number of suggestions that has to be determined. The default value is 10.

- **Product:** TX Spell .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 6.0
- **Namespace:** `TXTextControl.Proofing`
- **Package:** `TXTextControl.TXSpell.WPF.SDK` (assembly `TXSpell.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TXSpell.Core.SDK` (assembly `TXSpell.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXSpell.dll` from the setup
- **Path:** TX Spell .NET for WPF > Reference > TXTextControl.Proofing > SpellingCorrectionUIProvider.SuggestionsHandler.MaxSuggestions Property
- **351 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-suggestionshandler/maxsuggestions-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-suggestionshandler/maxsuggestions-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-suggestionshandler/maxsuggestions-property/llms-full.txt

---

### Description

Gets or sets the maximum number of [suggestions](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-suggestionshandler/suggestions-property/llms-full.txt) that has to be determined. The default value is 10.

### Syntax

```csharp
public int MaxSuggestions { get; set; }
```

```vbnet
Public Property MaxSuggestions As Integer
```

### 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.

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

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

---

## Nearby

- **Previous:** [SpellingCorrectionUIProvider.SuggestionsHandler.IsSuggestionListEnabled Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-suggestionshandler/issuggestionlistenabled-property/llms-full.txt)
- **Next:** [SpellingCorrectionUIProvider.SuggestionsHandler.Suggestions Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-suggestionshandler/suggestions-property/llms-full.txt)
