MonobjcMonobjc Documented Class Library
StringByReplacingCharactersInRangeWithString Method (range, replacement)
NamespacesMonobjc.FoundationNSStringStringByReplacingCharactersInRangeWithString(NSRange, NSString)

Returns a new string in which the characters in a specified range of the receiver are replaced by a given string.

Original signature is '- (NSString *)stringByReplacingCharactersInRange:(NSRange)range withString:(NSString *)replacement'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSString StringByReplacingCharactersInRangeWithString(
	NSRange range,
	NSString replacement
)
Public Overridable Function StringByReplacingCharactersInRangeWithString ( _
	range As NSRange, _
	replacement As NSString _
) As NSString
public:
virtual NSString^ StringByReplacingCharactersInRangeWithString(
	NSRange range, 
	NSString^ replacement
)
Parameters
range (NSRange)
A range of characters in the receiver.
replacement (NSString)
The string with which to replace the characters in range.
Return Value
A new string in which the characters in range of the receiver are replaced by replacement.
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.Foundation (Module: Monobjc.Foundation)