Düzenle

Aracılığıyla paylaş


UITextField.ShouldChangeTextInRange(UITextRange, String) Method

Definition

Allows the app developer to programmatically reject replacement text.

[Foundation.Export("shouldChangeTextInRange:replacementText:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool ShouldChangeTextInRange (UIKit.UITextRange inRange, string replacementText);
abstract member ShouldChangeTextInRange : UIKit.UITextRange * string -> bool
override this.ShouldChangeTextInRange : UIKit.UITextRange * string -> bool

Parameters

inRange
UITextRange

Current selection range in which text is changed.

replacementText
String

The replacement text to insert.

Returns

true if old text is to be replaced by new text; false if replacement operation is to be aborted.

Attributes

Applies to