Share via


UISearchBarDelegate.ShouldChangeTextInRange Method

Definition

Whether the text in the specified range should be replaced with the specified text.

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

Parameters

searchBar
UISearchBar
range
NSRange
text
String

Returns

Implements

Attributes

Applies to