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.
- C#
- VB.NET
public class SpellCheckerEventArgs : EventArgs
Public Class SpellCheckerEventArgs
Inherits EventArgs
Example:
void OnSuggestions(object sender, PPJ.Runtime.Windows.Spell.SpellCheckerEventArgs e)
{
if (e.Word == "teh")
{
e.NewWord = "the";
e.Handled = true;
}
}
Constructors
SpellCheckerEventArgs(language, word, suggestions)
Stores the language, word, and shared suggestion list for a spelling event.
| Name | Type | Description |
|---|---|---|
| language | String | The dictionary language. |
| word | String | The misspelled word. |
| suggestions | List<String> | The suggestion list, retained without copying. |
Properties
Handled
Boolean: Gets or sets whether the default suggestions menu is suppressed.
Language
String: Gets the dictionary language.
NewWord
String: Gets or sets an optional replacement word.
Used only when Handled is true and the replacement is nonempty.
Suggestions
List<String>: Gets the mutable list of suggested corrections.
Word
String: Gets the misspelled word.
Used By
| Name | Description |
|---|---|
| SpellCheckerEventHandler | Handles a request to display spelling suggestions. |