Version

CheckWord Method

Spell checks a word, and returns a WordCheckResult instance with the results from the check.
Syntax
'Declaration
 
Public Function CheckWord( _
   ByVal word As String _
) As WordCheckResult
public WordCheckResult CheckWord( 
   string word
)

Parameters

word
The word to spell check
Exceptions
ExceptionDescription
System.ArgumentException The word specified is not a single word.
Example
This sample shows how to check the spelling of a single word.

Imports Infragistics.Win.UltraWinSpellChecker

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
	Dim word As String = "speeling"

	'Check the word for spelling
	Dim result As WordCheckResult = Me.spellChecker.CheckWord(word)

	If (result.SpelledCorrectly) Then
		MessageBox.Show("The word: """ + word + """ is spelled correctly.")
	Else
		MessageBox.Show("The word: """ + word + """ is spelled incorrectly.")
	End If
End Sub
using System.Windows.Forms;
using Infragistics.Win.UltraWinSpellChecker;

private void button1_Click( object sender, EventArgs e )
{
	string word = "speeling";

	//Check the word for spelling
	WordCheckResult result = this.spellChecker.CheckWord( word );

	if ( result.SpelledCorrectly )
		MessageBox.Show( "The word: \"" + word + "\" is spelled correctly." );
	else
		MessageBox.Show( "The word: \"" + word + "\" is spelled incorrectly." );
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also