MonobjcMonobjc Documented Class Library
TextViewShouldSetSpellingStateRange Method (textView, value, affectedCharRange)
NamespacesMonobjc.AppKitNSTableViewTextViewShouldSetSpellingStateRange(NSTextView, NSInteger, NSRange)

Sent when the spelling state is changed.

Original signature is '- (NSInteger)textView:(NSTextView *)textView shouldSetSpellingState:(NSInteger)value range:(NSRange)affectedCharRange'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSInteger TextViewShouldSetSpellingStateRange(
	NSTextView textView,
	NSInteger value,
	NSRange affectedCharRange
)
Public Overridable Function TextViewShouldSetSpellingStateRange ( _
	textView As NSTextView, _
	value As NSInteger, _
	affectedCharRange As NSRange _
) As NSInteger
public:
virtual NSInteger TextViewShouldSetSpellingStateRange(
	NSTextView^ textView, 
	NSInteger value, 
	NSRange affectedCharRange
)
Parameters
textView (NSTextView)
The text view sending the message.
value (NSInteger)
The proposed spelling state value to set. Possible values, for the temporary attribute on the layout manager using the key NSSpellingStateAttributeName, are:
affectedCharRange (NSRange)
The character range over which to set the given spelling state.
Return Value
The actual spelling state to set.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)