語言

SurroundingText.SelectionStart 屬性

定義

回傳選取起始的文字偏移量,顯示在周圍文字中。

public int SelectionStart { [Android.Runtime.Register("getSelectionStart", "()I", "", ApiSince=31)] get; }
[<get: Android.Runtime.Register("getSelectionStart", "()I", "", ApiSince=31)>]
member this.SelectionStart : int

屬性值

屬性

備註

回傳選取起始的文字偏移量,顯示在周圍文字中。

選取範圍是使用者目前選擇的文字範圍,或游標的當前位置。 游標是一種選取,起點與終點位於相同的偏移量。

Java 文件 android.view.inputmethod.SurroundingText.getSelectionStart()。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於