NSMutableString.ReplaceOcurrences Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Replaces the contents of the mutable string matching a pattern with another.
[Foundation.Export("replaceOccurrencesOfString:withString:options:range:")]
public virtual nuint ReplaceOcurrences (Foundation.NSString target, Foundation.NSString replacement, Foundation.NSStringCompareOptions options, Foundation.NSRange range);
abstract member ReplaceOcurrences : Foundation.NSString * Foundation.NSString * Foundation.NSStringCompareOptions * Foundation.NSRange -> nuint
override this.ReplaceOcurrences : Foundation.NSString * Foundation.NSString * Foundation.NSStringCompareOptions * Foundation.NSRange -> nuint
Parameters
- target
- NSString
String text to be replaced.
- replacement
- NSString
String to replace the text with.
- options
- NSStringCompareOptions
comparison options that determine how the target is matched.
- range
- NSRange
Range where the replacement will take place.
Returns
System.System.UIntPtr
System.unativeint
Numbers of replacements done.
- Attributes