ComponentOne SpellChecker for WinForms
C1.Win.SpellChecker.8 Assembly / C1.Win.SpellChecker Namespace / C1SpellChecker Class / CheckControl Method / CheckControl(Control,Object,Boolean,ISpellDialog) Method
System.Windows.Forms.Control control that is used as a parent to show a spell checking dialog.
Reference to an IWebBrowser2 interface.
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
    CheckControl(Control,Object,Boolean,ISpellDialog) Method
    In This Topic
    Shows a spell-checking dialog for a control which supports the IHtmlDocument2 interface, returns the number of spelling errors found.
    Syntax
    'Declaration
     
    Public Overloads Function CheckControl( _
       ByVal control As System.Windows.Forms.Control, _
       ByVal browser As System.Object, _
       ByVal fromCursor As System.Boolean, _
       ByVal dlg As ISpellDialog _
    ) As System.Integer
    public System.int CheckControl( 
       System.Windows.Forms.Control control,
       System.object browser,
       System.bool fromCursor,
       ISpellDialog dlg
    )

    Parameters

    control
    System.Windows.Forms.Control control that is used as a parent to show a spell checking dialog.
    browser
    Reference to an IWebBrowser2 interface.
    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.

    Return Value

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