Share via


UITextView.ReplaceText(UITextRange, String) 方法

定义

将指定区域中的文本替换为提供的文本。

[Foundation.Export("replaceRange:withText:")]
public virtual void ReplaceText (UIKit.UITextRange range, string text);
abstract member ReplaceText : UIKit.UITextRange * string -> unit
override this.ReplaceText : UIKit.UITextRange * string -> unit

参数

range
UITextRange

要替换文本的区域。

text
String

替换文本。

实现

属性

适用于