TX Spell .NET for WPF

Delete Method

Method|Introduced in 6.0
Namespace
TXTextControl.Proofing
Package
TXTextControl.TXSpell.WPF.SDK as TXSpell.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TXSpell.Core.SDK as TXSpell.dll

Description

Deletes the current word to correct.

Syntax

public void Delete();

Examples

The following example uses Delete in a focused Correction Handler workflow. The created object is then available to the surrounding document workflow.

correctionHandler.Delete();
Console.WriteLine("Correction Handler is ready for use.");

Remarks

This method is only enabled if the SpellingCorrectionUIProvider's mode is set to SuggestionsCreated, NoSuggestionsCreated or WordToCorrectIsDuplicate.