# SuggestionCollection Class

> An instance of the SuggestionCollection class contains objects of the type Suggestion. It is inherited from the abstract class System.Collections.CollectionBase and implements the System.Collections.IEnumerable and System.Collections.IEnumerator interfaces. For a list of properties, methods and events of these classes and interfaces see the .NET Framework reference. The SuggestionCollection is sorted by suggestions with the closest match.

- **Product:** TX Spell .NET for WPF
- **Section:** Reference
- **Kind:** Class
- **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
- **Inherits:** `System.Collections.CollectionBase`
- **Implements:** `System.Collections.IEnumerable`, `System.Collections.IEnumerator`
- **Path:** TX Spell .NET for WPF > Reference > TXTextControl.Proofing > SuggestionCollection Class
- **617 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/suggestioncollection/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/suggestioncollection/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/suggestioncollection/llms-full.txt

---

### Description

An instance of the SuggestionCollection class contains objects of the type [Suggestion](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/suggestion/llms-full.txt). It is inherited from the abstract class `System.Collections.CollectionBase` and implements the `System.Collections.IEnumerable` and `System.Collections.IEnumerator` interfaces. For a list of properties, methods and events of these classes and interfaces see the .NET Framework reference. The SuggestionCollection is sorted by suggestions with the closest match.

### Syntax

```csharp
public sealed class SuggestionCollection : CollectionBase, IEnumerable, IEnumerator
```

```vbnet
Public NotInheritable Class SuggestionCollection
    Inherits CollectionBase
    Implements IEnumerable, IEnumerator
```

### Examples

The following example includes the current value from a Suggestion Collection object in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Current: {suggestionCollection.Current}");
Console.WriteLine("Suggestion Collection is ready for use.");
```

```vbnet
Console.WriteLine($"Current: {suggestionCollection.Current}")
Console.WriteLine("Suggestion Collection is ready for use.")
```

---

## In This Section

- [SuggestionCollection.Item Method](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/suggestioncollection/item-method/llms-full.txt): Gets a suggestion from the collection. This property is the indexer for the SuggestionCollection class.

---

## Nearby

- **Previous:** [Suggestion.Text Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/suggestion/text-property/llms-full.txt)
- **Next:** [SuggestionCollection.Item Method](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/suggestioncollection/item-method/llms-full.txt)
