Share via


UISearchBarDelegate.ShouldChangeTextInRange 方法

定义

是否应将指定范围内的文本替换为给定文本。

[Foundation.Export("searchBar:shouldChangeTextInRange:replacementText:")]
public virtual bool ShouldChangeTextInRange (UIKit.UISearchBar searchBar, Foundation.NSRange range, string text);
abstract member ShouldChangeTextInRange : UIKit.UISearchBar * Foundation.NSRange * string -> bool
override this.ShouldChangeTextInRange : UIKit.UISearchBar * Foundation.NSRange * string -> bool

参数

searchBar
UISearchBar
range
NSRange
text
String

返回

属性

适用于