InfoConnect for Airlines
CorrectMisspelling Method
Example 


The misspelled word.
The correctly spelled word which replaces the misspelled word.
Replaces a misspelled word with a correction at the specified location.
Syntax
'Declaration
 
Sub CorrectMisspelling( _
   ByVal misspelled As MisspelledWord, _
   ByVal correction As String _
) 
'Usage
 
Dim instance As ISpellCheck
Dim misspelled As MisspelledWord
Dim correction As String
 
instance.CorrectMisspelling(misspelled, correction)
void CorrectMisspelling( 
   MisspelledWord misspelled,
   string correction
)

Parameters

misspelled
The misspelled word.
correction
The correctly spelled word which replaces the misspelled word.
Exceptions
ExceptionDescription
System.ArgumentNullException Thrown if either of the input arguments are null (or in Visual Basic are Nothing).
System.ArgumentException Thrown if the correction string parameter is zero-length (empty).
Example

	
See Also