UITextView.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.
Called prior to an edit. Can be overridden to selectively filter edits.
[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
Specifies a range of text.
- replacementText
- String
Replacement text.
Returns
The default value is true
.
- Attributes
Remarks
This method is called prior to a replacement being made in the text. Application developers can override this method and, if they return false
, the replacement will not be made.