LanguageScopeCollection Class
- Namespace
TXTextControl.Proofing
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTXSpell. WPF. SDK
- Assembly
TXSpell.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTXSpell. WPF. SDK TXSpell.from the setup.dll
- Also in
TXTextControl.asTXSpell. Core. SDK TXSpell.dll
- Inherits
- Collection
Base - Language
Scope Collection
- Collection
- Implements
- IEnumerable, IEnumerator
Description
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.
Syntax
public sealed class LanguageScopeCollection : CollectionBase, IEnumerable, IEnumeratorPublic NotInheritable Class LanguageScopeCollection
Inherits CollectionBase
Implements IEnumerable, IEnumeratorExamples
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.
Console.WriteLine($"Current: {languageScopeCollection.Current}");
Console.WriteLine("Language Scope Collection is ready for use.");Console.WriteLine($"Current: {languageScopeCollection.Current}")
Console.WriteLine("Language Scope Collection is ready for use.")Members
Properties
| Property | Description |
|---|---|
| Current | Not described in the reference. public object Current { get; } |
| Item | Gets an object of type LanguageScope from the collection. This property is the indexer for the LanguageScopeCollection class. |
Methods
| Method | Description |
|---|---|
| GetItem | Gets a particular item from the collection. |
| MoveNext | Not described in the reference. public bool MoveNext(); |
| Reset | Not described in the reference. public void Reset(); |