MonobjcMonobjc Documented Class Library
ShouldChangeTextInRangeReplacementString Method (affectedCharRange, replacementString)
NamespacesMonobjc.AppKitNSTextViewShouldChangeTextInRangeReplacementString(NSRange, NSString)

Initiates a series of delegate messages (and general notifications) to determine whether modifications can be made to the characters and attributes of the receiver’s text.

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

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool ShouldChangeTextInRangeReplacementString(
	NSRange affectedCharRange,
	NSString replacementString
)
Public Overridable Function ShouldChangeTextInRangeReplacementString ( _
	affectedCharRange As NSRange, _
	replacementString As NSString _
) As Boolean
public:
virtual bool ShouldChangeTextInRangeReplacementString(
	NSRange affectedCharRange, 
	NSString^ replacementString
)
Parameters
affectedCharRange (NSRange)
The range of characters affected by the proposed change.
replacementString (NSString)
The characters that will replace those in affectedCharRange. If only text attributes are being changed, replacementString is nil.
Return Value
YES to allow the change, NO to prohibit it.
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)