Platforms to show: All Mac Windows Linux Cross-Platform

WinSpellingErrorMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Spell Checking MBS WinFrameworks Plugin 21.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Provides information about a spelling error.
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

This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

Corrective Actions

Constant Value Description
kCorrectiveActionDelete 3 The user should be prompted to delete the indicated erroneous text.
kCorrectiveActionGetSuggestions 1 The user should be prompted with a list of suggestions as returned by Suggest.
kCorrectiveActionNone 0 There are no errors.
kCorrectiveActionReplace 2 Replace the indicated erroneous text with the text provided in the suggestion. The user does not need to be prompted.

This class has no sub classes.

Some methods using this class:

Some examples using this class:

Blog Entries

Release notes


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


WinSpellCheckerOptionDescriptionMBS   -   WinThreadPoolMBS


The biggest plugin in space...