Asks the delegate to search for a misspelled word in a given string, using the specified language, and marking the first misspelled word found by returning its range within the string.
Original signature is '- (NSRange)spellServer:(NSSpellServer *)sender findMisspelledWordInString:(NSString *)stringToCheck language:(NSString *)language wordCount:(NSInteger *)wordCount countOnly:(BOOL)countOnly'
Available in Mac OS X v10.0 and later.

C# | Visual Basic | Visual C++ |
NSRange SpellServerFindMisspelledWordInStringLanguageWordCountCountOnly( NSSpellServer sender, NSString stringToCheck, NSString language, out NSInteger wordCount, bool countOnly )
Function SpellServerFindMisspelledWordInStringLanguageWordCountCountOnly ( _ sender As NSSpellServer, _ stringToCheck As NSString, _ language As NSString, _ <OutAttribute> ByRef wordCount As NSInteger, _ countOnly As Boolean _ ) As NSRange
NSRange SpellServerFindMisspelledWordInStringLanguageWordCountCountOnly( NSSpellServer^ sender, NSString^ stringToCheck, NSString^ language, [OutAttribute] NSInteger% wordCount, bool countOnly )

- sender (NSSpellServer)
- The NSSpellServer object that sent this message.
- stringToCheck (NSString)
- The string to search for the misspelled word.
- language (NSString)
- The language to use for the search.
- wordCount (NSInteger%)
- On output, returns by reference the number of words from the beginning of the string object until the misspelled word (or the end of string).
- countOnly (Boolean)
- If YES, the method only counts the words in the string object and does not spell checking.

The range of the misspelled word within the given string.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)