次の方法で共有


IUITextInput.SelectedTextRange プロパティ

定義

文書の選択したテキストの範囲。

[Foundation.Preserve(Conditional=true)]
public UIKit.UITextRange SelectedTextRange { [Foundation.Export("selectedTextRange", ObjCRuntime.ArgumentSemantic.Copy)] get; [Foundation.Export("setSelectedTextRange:", ObjCRuntime.ArgumentSemantic.Copy)] set; }
member this.SelectedTextRange : UIKit.UITextRange with get, set

プロパティ値

現在指定されている選択範囲がない場合は、 に null設定されます。

属性

注釈

指定した範囲に長さがある場合は、現在選択されているテキストを指定します。長さが 0 の場合は、カーソル位置のキャレットのみを指定します。

適用対象