CorrectedWord Property
- Namespace
TXTextControl.Proofing
- Package
TXTextControl.asTXSpell. WPF. SDK TXSpell.from the private NuGet feed or Text Control Offline Packagesdll
- Also in
TXTextControl.asTXSpell. Core. SDK TXSpell.dll
Description
Gets or sets the new word that replaces the text of an object of type TXTextControl.MisspelledWord.
Syntax
public string CorrectedWord { get; set; }Public Property CorrectedWord As StringExamples
The following example uses MisspelledWordChangingEventArgs.CorrectedWord to configure corrected word as part of the misspelled word changing event args workflow. The configured value is checked before the workflow continues.
misspelledWordChangingEventArgs.CorrectedWord = "Quarterly report";
if (!string.IsNullOrWhiteSpace(misspelledWordChangingEventArgs.CorrectedWord))
{
Console.WriteLine($"Corrected Word: {misspelledWordChangingEventArgs.CorrectedWord}");
}misspelledWordChangingEventArgs.CorrectedWord = "Quarterly report"
If Not String.IsNullOrWhiteSpace(misspelledWordChangingEventArgs.CorrectedWord) Then
Console.WriteLine($"Corrected Word: {misspelledWordChangingEventArgs.CorrectedWord}")
End IfRemarks
That property returns an exception, if the current MisspelledWordChangingEventArgs.Type property is not type of Replace.