NSString.Replace(NSRange, NSString) 方法

定义

返回一个新字符串,该字符串将替换字符串替换为此字符串中的指定范围。

[Foundation.Export("stringByReplacingCharactersInRange:withString:")]
public virtual Foundation.NSString Replace (Foundation.NSRange range, Foundation.NSString replacement);
abstract member Replace : Foundation.NSRange * Foundation.NSString -> Foundation.NSString
override this.Replace : Foundation.NSRange * Foundation.NSString -> Foundation.NSString

参数

range
NSRange
replacement
NSString

返回

属性

适用于