RichTextBox for WPF | ComponentOne
C1.WPF.SpellChecker Namespace / C1SpellChecker Class / CheckControlAsync Method / CheckControlAsync(Object,Boolean,ISpellDialog) Method
Object that contains the text to be spell-checked.
Whether to check only from the cursor position or the entire control contents.
Dialog that implements the ISpellDialog interface used for displaying and correcting errors.

In This Topic
    CheckControlAsync(Object,Boolean,ISpellDialog) Method
    In This Topic
    Shows a spell-checking dialog for an editor control.
    Syntax
    'Declaration
     
    
    Public Overloads Sub CheckControlAsync( _
       ByVal editor As Object, _
       ByVal fromCursor As Boolean, _
       ByVal dlg As ISpellDialog _
    ) 
    public void CheckControlAsync( 
       object editor,
       bool fromCursor,
       ISpellDialog dlg
    )

    Parameters

    editor
    Object that contains the text to be spell-checked.
    fromCursor
    Whether to check only from the cursor position or the entire control contents.
    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 System.Windows.Controls.TextBox, C1RichTextBox, or an object that implements the ISpellCheckableEditor interface. Other objects are invalid and will cause this method to throw an exception.
    See Also