MonobjcMonobjc Documented Class Library
ShouldChangeTextInRangesReplacementStrings Method (affectedRanges, replacementStrings)
NamespacesMonobjc.AppKitNSTextViewShouldChangeTextInRangesReplacementStrings(NSArray, NSArray)

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)shouldChangeTextInRanges:(NSArray *)affectedRanges replacementStrings:(NSArray *)replacementStrings'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool ShouldChangeTextInRangesReplacementStrings(
	NSArray affectedRanges,
	NSArray replacementStrings
)
Public Overridable Function ShouldChangeTextInRangesReplacementStrings ( _
	affectedRanges As NSArray, _
	replacementStrings As NSArray _
) As Boolean
public:
virtual bool ShouldChangeTextInRangesReplacementStrings(
	NSArray^ affectedRanges, 
	NSArray^ replacementStrings
)
Parameters
affectedRanges (NSArray)
An array of ranges to change.
replacementStrings (NSArray)
An array of strings containing the characters that replace those in affectedRanges, one for each range. If only text attributes are being changed, replacementStrings 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)