MonobjcMonobjc Documented Class Library
TextViewShouldChangeTextInRangeReplacementString Method (aTextView, affectedCharRange, replacementString)
NamespacesMonobjc.AppKitINSTextViewDelegateTextViewShouldChangeTextInRangeReplacementString(NSTextView, NSRange, NSString)

Sent when a text view needs to determine if text in a specified range should be changed.

Original signature is '- (BOOL)textView:(NSTextView *)aTextView shouldChangeTextInRange:(NSRange)affectedCharRange replacementString:(NSString *)replacementString'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
bool TextViewShouldChangeTextInRangeReplacementString(
	NSTextView aTextView,
	NSRange affectedCharRange,
	NSString replacementString
Function TextViewShouldChangeTextInRangeReplacementString ( _
	aTextView As NSTextView, _
	affectedCharRange As NSRange, _
	replacementString As NSString _
) As Boolean
bool TextViewShouldChangeTextInRangeReplacementString(
	NSTextView^ aTextView, 
	NSRange affectedCharRange, 
	NSString^ replacementString
aTextView (NSTextView)
The text view sending the message. This is the first text view in a series shared by a layout manager, not necessarily the text view displaying the selected text.
affectedCharRange (NSRange)
The range of characters to be replaced.
replacementString (NSString)
The characters that will replace the characters in affectedCharRange; nil if only text attributes are being changed.
Return Value
YES to allow the replacement, or NO to reject the change.
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)