# SpellingCorrectionUIProvider.SuggestionsHandler.Suggestions Property

> Gets an array of suggestions which are created based on the selected suggestions dictionaries. The maximum number of items depends on the MaxSuggestion property.

- **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.Suggestions Property
- **615 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-suggestionshandler/suggestions-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-suggestionshandler/suggestions-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-suggestionshandler/suggestions-property/llms-full.txt

---

### Description

Gets an array of [suggestions](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/suggestion/llms-full.txt) which are created based on the [selected suggestions dictionaries](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-suggestiondictionarieshandler/selectedsuggestiondictionaries-property/llms-full.txt). The maximum number of items depends on the [MaxSuggestion](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-suggestionshandler/maxsuggestions-property/llms-full.txt) property.

### Syntax

```csharp
public object[] Suggestions { get; }
```

```vbnet
Public ReadOnly Property Suggestions As Object()
```

### Examples

The following example iterates through the suggestions collection and processes each object.

```csharp
foreach (object item in suggestionsHandler.Suggestions)
{
    Console.WriteLine(item);
}
```

```vbnet
For Each item As Object In suggestionsHandler.Suggestions
    Console.WriteLine(item)
Next
```

### Limitations

Read only.

### Remarks

This property is only enabled to create suggestions if the [SpellingCorrectionUIProvider's mode](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-statemanager/mode-property/llms-full.txt) is set to [SuggestionsCreated](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell-spellingcorrectionmode/enumeration/llms-full.txt) or [WordToCorrectEditing](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell-spellingcorrectionmode/enumeration/llms-full.txt). If is the [IsNoSuggestionsItemEnabled](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-suggestionshandler/isnosuggestionsitemenabled-property/llms-full.txt) property is true and the SpellingCorrectionUIProvider's mode is set to [NoSuggestionsCreated](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell-spellingcorrectionmode/enumeration/llms-full.txt), the property returns an array containing one item which informs the user that no suggestions could be created. In all other circumstances the method returns an empty array.

---

## Nearby

- **Previous:** [SpellingCorrectionUIProvider.SuggestionsHandler.MaxSuggestions Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-suggestionshandler/maxsuggestions-property/llms-full.txt)
- **Next:** [SpellingCorrectionUIProvider.SuggestionsHandling Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/spellingcorrectionuiprovider/suggestionshandling-property/llms-full.txt)
