共用方式為


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

傳回

屬性

適用於