Shows a spell-checking dialog for an editor control.
Namespace:
C1.Silverlight.SpellCheckerAssembly: C1.Silverlight.SpellChecker (in C1.Silverlight.SpellChecker.dll)
Syntax
| C# |
|---|
public void CheckControlAsync( Object editor, bool fromCursor, ISpellDialog dlg ) |
| Visual Basic |
|---|
Public Sub CheckControlAsync ( _ editor As Object, _ fromCursor As Boolean, _ dlg As ISpellDialog _ ) |
Parameters
- editor
- Type: System..::..Object
Object that contains the text to be spell-checked.
- fromCursor
- Type: System..::..Boolean
Whether to check only from the cursor position or the entire control contents.
- dlg
- Type: C1.Silverlight.SpellChecker..::..ISpellDialog
Dialog that implements the ISpellDialog interface used for displaying and correcting errors.
Remarks
In order to be spell-checkable, the editor must be a
TextBox, C1RichTextBox, or an object that implements the
ISpellCheckableEditor interface. Other objects are invalid and will
cause this method to throw an exception.