MisspelledWord Class
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. Core. SDK
- Assembly
TXTextControl.Core. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. Core. SDK TXTextControl.from the setup.dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
The MisspelledWord class represents a misspelled word in a document's text.
Syntax
public class MisspelledWordPublic Class MisspelledWordExamples
The following example locates the first spelling issue in a short document.
textControl.Text = "The quaterly report is ready.";
MisspelledWord misspelledWord = textControl.MisspelledWords.GetItem();
if (misspelledWord == null)
{
return;
}textControl.Text = "The quaterly report is ready."
Dim misspelledWord As MisspelledWord = textControl.MisspelledWords.GetItem()
If misspelledWord Is Nothing Then
Return
End IfMembers
Constructors
| Constructor | Description |
|---|---|
| MisspelledWord | Initializes a new instance of the MisspelledWord class with the specified starting position and length. |
Properties
| Property | Description |
|---|---|
| Culture | Gets the culture of the misspelled word. If there is no specific culture, the property value is null. |
| IsDuplicate | Gets or sets a value which marks the misspelled word as duplicate. A duplicate word is not misspelled, but it has the same text as the word in front of it. |
| IsIgnored | Gets or sets a value which marks the misspelled word as ignored. An ignored misspelled word remains in the collection of misspelled words, but it is not underlined in the text with a red zigzag line. |
| Length | Gets the length of a misspelled word. |
| Number | Gets the number of this misspelled word. All misspelled words are counted from the beginning to the end of a document. The first word has the number 1. |
| Start | Gets the starting position of a misspelled word. It is a one-based index of the word's first character. |
| Text | Gets the text of the misspelled word. |
Methods
| Method | Description |
|---|---|
| Select | Selects the misspelled word in the text. |