ChangeType Enumeration
- 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
Description
Determines how an object of type TXTextControl.MisspelledWord or IncorrectWord is changed by a SpellCheckDialog or spell check menu item click operation. The enumeration contains the following values:
Syntax
public enum TXSpell.ChangeTypePublic Enum TXSpell.ChangeTypeMembers
| Member | Value | Description |
|---|---|---|
| Delete | 0 | The misspelled word is deleted. If the misspelled word is an object of type IncorrectWord the Start and Length properties of the IncorrectWord are specified to the index and length of the corresponding text that would be removed. |
| Ignore | 1 | The misspelled word is ignored. |
| Replace | 2 | The misspelled word is replaced by another (MisspelledWordChangingEventArgs.CorrectedWord / IncorrectWordChangingEventArgs.CorrectedWord). |
Examples
The following example selects the Delete value from the Change Type enumeration and uses it as a documented workflow choice.
TXTextControl.Proofing.TXSpell.ChangeType value = TXTextControl.Proofing.TXSpell.ChangeType.Delete;
Console.WriteLine($"Using Change Type: {value}");Dim value As TXTextControl.Proofing.TXSpell.ChangeType = TXTextControl.Proofing.TXSpell.ChangeType.Delete
Console.WriteLine($"Using Change Type: {value}")