Skip to main content

SpellCheckerEventArgs

Namespace: PPJ.Runtime.Windows.Spell

Assembly: PPJ.Runtime.50 (5.0.0.0)

Carries spelling suggestions and a handler response for a misspelled word.

public class SpellCheckerEventArgs : EventArgs

Example:

void OnSuggestions(object sender, PPJ.Runtime.Windows.Spell.SpellCheckerEventArgs e)
{
if (e.Word == "teh")
{
e.NewWord = "the";
e.Handled = true;
}
}

Constructors

Instance member SpellCheckerEventArgs(language, word, suggestions)

Stores the language, word, and shared suggestion list for a spelling event.

NameTypeDescription
languageStringThe dictionary language.
wordStringThe misspelled word.
suggestionsList<String>The suggestion list, retained without copying.

Properties

Instance member Handled

Boolean: Gets or sets whether the default suggestions menu is suppressed.

Instance member Language

String: Gets the dictionary language.

Instance member NewWord

String: Gets or sets an optional replacement word.

Used only when Handled is true and the replacement is nonempty.

Instance member Suggestions

List<String>: Gets the mutable list of suggested corrections.

Instance member Word

String: Gets the misspelled word.

Used By

NameDescription
SpellCheckerEventHandlerHandles a request to display spelling suggestions.