Platforms to show: All Mac Windows Linux Cross-Platform

Back to WinSpellingErrorMBS class.

WinSpellingErrorMBS.CorrectiveAction as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Spell Checking MBS WinFrameworks Plugin 21.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Indicates which corrective action should be taken for the spelling error.

Raises WinSpellCheckerExceptionMBS in case of an error.
(Read only property)

WinSpellingErrorMBS.Length as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Spell Checking MBS WinFrameworks Plugin 21.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Gets the length of the erroneous text.

Raises WinSpellCheckerExceptionMBS in case of an error.
(Read only property)

WinSpellingErrorMBS.Replacement as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Spell Checking MBS WinFrameworks Plugin 21.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Gets the text to use as replacement text when the corrective action is replace.
Example
Dim w As New WinSpellCheckerMBS("en-US")

// tell it to capitalize Xojo!
w.AutoCorrect "xojo", "Xojo"

Dim Text As String = "Hello xojo!"
Dim errors() As WinSpellingErrorMBS = w.check(Text)
Dim Error As WinSpellingErrorMBS = errors(0)

MsgBox "Spelling error in """ + Text.Mid(error.StartIndex+1, error.Length)+""". Must be "+error.Replacement

If the CorrectiveAction returned by CorrectiveAction is not kCorrectiveActionReplace, value is the empty string.

Raises WinSpellCheckerExceptionMBS in case of an error.

If empty, you may better go with Suggest() function in WinSpellCheckerMBS class.
(Read only property)

Some examples using this property:

WinSpellingErrorMBS.StartIndex as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Spell Checking MBS WinFrameworks Plugin 21.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Gets the position in the checked text where the error begins.

Index is zero based!

Raises WinSpellCheckerExceptionMBS in case of an error.
(Read only property)

WinSpellingErrorMBS.Text as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Spell Checking MBS WinFrameworks Plugin 21.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
The text referenced.

For your convenience we prepare Text.Middle(StartIndex, Length) for you here.
(Read only property)

The items on this page are in the following plugins: MBS WinFrameworks Plugin.


The biggest plugin in space...