UITextField.ShouldChangeTextInRange(UITextRange, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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