Partilhar via


UITextField.ShouldChangeTextInRange(UITextRange, String) Método

Definição

Permite que o desenvolvedor do aplicativo rejeite programaticamente o texto de substituição.

[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

Parâmetros

inRange
UITextRange

Intervalo de seleção atual no qual o texto é alterado.

replacementText
String

O texto de substituição a ser inserido.

Retornos

true se o texto antigo deve ser substituído pelo novo texto; false se a operação de substituição deve ser anulada.

Atributos

Aplica-se a