UITextField.ShouldChangeTextInRange(UITextRange, String) メソッド

定義

アプリ開発者が置換テキストをプログラムで拒否できるようにします。

[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

パラメーター

inRange
UITextRange

テキストが変更される現在の選択範囲。

replacementText
String

挿入する置換テキスト。

戻り値

true 古いテキストを新しいテキストに置き換える場合は 。 false 置換操作を中止する場合は 。

属性

適用対象