ComponentOne SpellChecker for WinForms
CheckControl(WebBrowser,Boolean,ISpellDialog) Method

C1.Win.C1SpellChecker.4 Assembly > C1.Win.C1SpellChecker Namespace > C1SpellChecker Class > CheckControl Method : CheckControl(WebBrowser,Boolean,ISpellDialog) Method
System.Windows.Forms.WebBrowser control 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.
Shows a spell-checking dialog for a browser, returns the number of spelling errors found.
Syntax
'Declaration
 
Public Overloads Function CheckControl( _
   ByVal browser As System.Windows.Forms.WebBrowser, _
   ByVal fromCursor As System.Boolean, _
   ByVal dlg As ISpellDialog _
) As System.Integer
public System.int CheckControl( 
   System.Windows.Forms.WebBrowser browser,
   System.bool fromCursor,
   ISpellDialog dlg
)

Parameters

browser
System.Windows.Forms.WebBrowser control 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.

Return Value

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

Reference

C1SpellChecker Class
C1SpellChecker Members
Overload List