# LanguageScopeCollection Class

> An instance of the LanguageScopeCollection class contains all detected language scopes for a specific text. These language scopes are represented through objects of type LanguageScope. 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.

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

---

### Description

An instance of the LanguageScopeCollection class contains all [detected language scopes for a specific text](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell/detectlanguagescopes-method/llms-full.txt). These language scopes are represented through objects of type [LanguageScope](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/languagescope/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.

### Syntax

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

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

### Examples

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

```csharp
Console.WriteLine($"Current: {languageScopeCollection.Current}");
Console.WriteLine("Language Scope Collection is ready for use.");
```

```vbnet
Console.WriteLine($"Current: {languageScopeCollection.Current}")
Console.WriteLine("Language Scope Collection is ready for use.")
```

---

## In This Section

- [LanguageScopeCollection.GetItem Method](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/languagescopecollection/getitem-method/llms-full.txt): Gets a particular item from the collection.
- [LanguageScopeCollection.Item Method](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/languagescopecollection/item-method/llms-full.txt): Gets an object of type LanguageScope from the collection. This property is the indexer for the LanguageScopeCollection class.

---

## Nearby

- **Previous:** [LanguageScope.Start Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/languagescope/start-property/llms-full.txt)
- **Next:** [LanguageScopeCollection.GetItem Method](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/languagescopecollection/getitem-method/llms-full.txt)
