IncorrectWordChangingEventArgs Class
- Namespace
TXTextControl.Proofing
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTXSpell. WinForms. SDK
- Assembly
TXSpell.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTXSpell. WinForms. SDK TXSpell.from the setup.dll
- Also in
TXTextControl.asTXSpell. Core. SDK TXSpell.dll
- Inherits
- Event
Args - Incorrect
Word Changing Event Args
- Event
Description
The IncorrectWordChangingEventArgs class provides data for the TXSpellChecker.IncorrectWordChanging event in TX Spell .NET for Windows Forms and WPF.
Syntax
public sealed class IncorrectWordChangingEventArgs : EventArgsPublic NotInheritable Class IncorrectWordChangingEventArgs
Inherits EventArgsExamples
The following example includes the cancel value from an Incorrect Word Changing Event Args object in application diagnostics. The created object is then available to the surrounding document workflow.
Console.WriteLine($"Cancel: {incorrectWordChangingEventArgs.Cancel}");
Console.WriteLine("Incorrect Word Changing Event Args is ready for use.");Console.WriteLine($"Cancel: {incorrectWordChangingEventArgs.Cancel}")
Console.WriteLine("Incorrect Word Changing Event Args is ready for use.")Members
Properties
| Property | Description |
|---|---|
| CorrectedText | Gets the complete text including the replaced incorrect words with the corrected words. |
| CorrectedWord | Gets or sets the new word that replaces the text of the incorrect word. |
| IncorrectWord | Gets the incorrect word that is changed. |
| SourceText | Gets the complete text without the replaced incorrect words. |
| Type | Gets the type that defines how the incorrect word is changed. |
| WillBeDuplicate | Gets a value specifying whether replacing the text of the current incorrect word would result in a conversion to a duplicate incorrect word. |
Methods
| Method | Description |
|---|---|
| Cancel | Get or sets a value indicating whether the changing operation for the current incorrect word should be canceled. |