MonobjcMonobjc Documented Class Library
NSSpellServer..::..SpellServerCheckStringOffsetTypesOptionsOrthographyWordCountEventHandler Delegate
NamespacesMonobjc.FoundationNSSpellServerNSSpellServer..::..SpellServerCheckStringOffsetTypesOptionsOrthographyWordCountEventHandler

Gives the delegate the opportunity to analyze both the spelling and grammar simultaneously, which is more efficient.

Original signature is '- (NSArray *)spellServer:(NSSpellServer *)sender checkString:(NSString *)stringToCheck offset:(NSUInteger)offset types:(NSTextCheckingTypes)checkingTypes options:(NSDictionary *)options orthography:(NSOrthography *)orthography wordCount:(NSInteger *)wordCount'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public delegate NSArray SpellServerCheckStringOffsetTypesOptionsOrthographyWordCountEventHandler(
	NSSpellServer sender,
	NSString stringToCheck,
	NSUInteger offset,
	NSTextCheckingTypes checkingTypes,
	NSDictionary options,
	NSOrthography orthography,
	out NSInteger wordCount
)
Public Delegate Function SpellServerCheckStringOffsetTypesOptionsOrthographyWordCountEventHandler ( _
	sender As NSSpellServer, _
	stringToCheck As NSString, _
	offset As NSUInteger, _
	checkingTypes As NSTextCheckingTypes, _
	options As NSDictionary, _
	orthography As NSOrthography, _
	<OutAttribute> ByRef wordCount As NSInteger _
) As NSArray
public delegate NSArray^ SpellServerCheckStringOffsetTypesOptionsOrthographyWordCountEventHandler(
	NSSpellServer^ sender, 
	NSString^ stringToCheck, 
	NSUInteger offset, 
	NSTextCheckingTypes checkingTypes, 
	NSDictionary^ options, 
	NSOrthography^ orthography, 
	[OutAttribute] NSInteger% wordCount
)
Parameters
sender (NSSpellServer)
Spell server making the analysis request.
stringToCheck (NSString)
String to analyze.
offset (NSUInteger)
The offset in the string.
checkingTypes (NSTextCheckingTypes)
The text checking types to perform.
options (NSDictionary)
A dictionary defining the actions to be taken while checking this string. See Constants in NSSpellChecker for the possible keys.
orthography (NSOrthography)
The identified orthography of stringToCheck. See NSOrthography for more information.
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).
Return Value
An array of NSTextCheckingResult instances of the spelling, grammar, or correction types, depending on the checkingTypes requested.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)