TX Spell .NET for WPF

IncorrectWordChangingEventArgs Class

Class|Introduced in 3.0
Namespace
TXTextControl.Proofing
Package
TXTextControl.TXSpell.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXSpell.dll
Install
dotnet add package TXTextControl.TXSpell.WPF.SDK .NET 8 and later. For .NET Framework, reference TXSpell.dll from the setup.
Also in
TXTextControl.TXSpell.Core.SDK as TXSpell.dll
Inherits
  1. EventArgs
  2. IncorrectWordChangingEventArgs

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 : EventArgs

Examples

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.");

Members

Properties

PropertyDescription
CorrectedTextGets the complete text including the replaced incorrect words with the corrected words.
CorrectedWordGets or sets the new word that replaces the text of the incorrect word.
IncorrectWordGets the incorrect word that is changed.
SourceTextGets the complete text without the replaced incorrect words.
TypeGets the type that defines how the incorrect word is changed.
WillBeDuplicateGets a value specifying whether replacing the text of the current incorrect word would result in a conversion to a duplicate incorrect word.

Methods

MethodDescription
CancelGet or sets a value indicating whether the changing operation for the current incorrect word should be canceled.