ComponentOne SpellChecker for WinForms
C1.Win.SpellChecker.8 Assembly / C1.Win.SpellChecker Namespace / C1SpellChecker Class / CheckControl Method / CheckControl(TextBoxBase,Boolean) Method
System.Windows.Forms.TextBoxBase control that contains the text to be spell-checked.
Whether to check only from the cursor position or the entire control contents.

In This Topic
    CheckControl(TextBoxBase,Boolean) Method
    In This Topic
    Shows a spell-checking dialog for an editor, returns the number of spelling errors found.
    Syntax
    'Declaration
     
    Public Overloads Function CheckControl( _
       ByVal editor As System.Windows.Forms.TextBoxBase, _
       ByVal fromCursor As System.Boolean _
    ) As System.Integer
    public System.int CheckControl( 
       System.Windows.Forms.TextBoxBase editor,
       System.bool fromCursor
    )

    Parameters

    editor
    System.Windows.Forms.TextBoxBase control that contains the text to be spell-checked.
    fromCursor
    Whether to check only from the cursor position or the entire control contents.

    Return Value

    The number of errors found, -1 if the dialog was canceled.
    See Also