TX Spell .NET for Windows Forms

MisspelledWordChangingEventArgs Class

Class|Introduced in 3.0
Namespace
TXTextControl.Proofing
Package
TXTextControl.TXSpell.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXSpell.dll
Install
dotnet add package TXTextControl.TXSpell.WinForms.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. MisspelledWordChangingEventArgs

Description

The MisspelledWordChangingEventArgs class provides data for the TXSpellChecker.MisspelledWordChanging event in TXSpell for Windows Forms and WPF.

Syntax

public sealed class MisspelledWordChangingEventArgs : EventArgs

Examples

The following example includes the cancel value from a Misspelled Word Changing Event Args object in application diagnostics. The created object is then available to the surrounding document workflow.

Console.WriteLine($"Cancel: {misspelledWordChangingEventArgs.Cancel}");
Console.WriteLine("Misspelled Word Changing Event Args is ready for use.");

Members

Properties

PropertyDescription
CancelGet or sets a value indicating whether the changing operation for the current misspelled word should be canceled.
CorrectedWordGets or sets the new word that replaces the text of an object of type TXTextControl.MisspelledWord.
IFormattedTextGets the object of type TXTextControl.IFormattedText where the object of type TXTextControl.MisspelledWord is changed.
MisspelledWordGets the object of type TXTextControl.MisspelledWord that is changed.
TypeGets the type that defines how the object of type TXTextControl.MisspelledWord is changed.
WillBeDuplicateGets a value specifying whether replacing the text of the current misspelled word would result in a conversion to a duplicate misspelled word.