UITextField.ShouldChangeTextInRange(UITextRange, String) Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
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