[]
        
(Showing Draft Content)

C1.WPF.SpellChecker.C1SpellChecker.CheckControlAsync

CheckControlAsync Method

CheckControlAsync(object, bool, ISpellDialog)

Shows a spell-checking dialog for an editor control.

Declaration
public void CheckControlAsync(object editor, bool fromCursor, ISpellDialog dlg)
Public Sub CheckControlAsync(editor As Object, fromCursor As Boolean, dlg As ISpellDialog)
Parameters
Type Name Description
object editor

Object that contains the text to be spell-checked.

bool fromCursor

Whether to check only from the cursor position or the entire control contents.

ISpellDialog dlg

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.

CheckControlAsync(object)

Shows a spell-checking dialog for an editor control.

Declaration
public void CheckControlAsync(object editor)
Public Sub CheckControlAsync(editor As Object)
Parameters
Type Name Description
object editor

Object that contains the text to be spell-checked.

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.

CheckControlAsync(object, bool)

Shows a spell-checking dialog for an editor control.

Declaration
public void CheckControlAsync(object editor, bool fromCursor)
Public Sub CheckControlAsync(editor As Object, fromCursor As Boolean)
Parameters
Type Name Description
object editor

Object that contains the text to be spell-checked.

bool fromCursor

Whether to check only from the cursor position or the entire control contents.

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.