Share via


UITextViewDelegate.ShouldChangeText Method

Definition

Overloads

Name Description
ShouldChangeText(UITextView, NSRange, String)

Whether the specified text should be replaced in the UITextView.

ShouldChangeText(UITextView, NSValue[], String)

ShouldChangeText(UITextView, NSRange, String)

Whether the specified text should be replaced in the UITextView.

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

Parameters

textView
UITextView
range
NSRange
text
String

Returns

Implements

Attributes

Applies to

ShouldChangeText(UITextView, NSValue[], String)

[Foundation.Export("textView:shouldChangeTextInRanges:replacementText:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool ShouldChangeText(UIKit.UITextView textView, Foundation.NSValue[] ranges, string replacementText);
[<Foundation.Export("textView:shouldChangeTextInRanges:replacementText:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member ShouldChangeText : UIKit.UITextView * Foundation.NSValue[] * string -> bool
override this.ShouldChangeText : UIKit.UITextView * Foundation.NSValue[] * string -> bool

Parameters

textView
UITextView
ranges
NSValue[]
replacementText
String

Returns

Implements

Attributes

Applies to