'Declaration
Public Overloads Function CheckControl( _
ByVal As System.Windows.Forms.Control, _
ByVal As System.Object, _
ByVal As System.Boolean, _
ByVal As ISpellDialog _
) As System.Integer
public System.int CheckControl(
System.Windows.Forms.Control ,
System.object ,
System.bool ,
ISpellDialog
)
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.