다음을 통해 공유


TextView.FocusedSearchResultIndex Property

Definition

Gets the focused search result index. -or- Sets the focused search result index.

public virtual int FocusedSearchResultIndex { [Android.Runtime.Register("getFocusedSearchResultIndex", "()I", "GetGetFocusedSearchResultIndexHandler", ApiSince=34)] get; [Android.Runtime.Register("setFocusedSearchResultIndex", "(I)V", "GetSetFocusedSearchResultIndex_IHandler", ApiSince=34)] set; }
[<get: Android.Runtime.Register("getFocusedSearchResultIndex", "()I", "GetGetFocusedSearchResultIndexHandler", ApiSince=34)>]
[<set: Android.Runtime.Register("setFocusedSearchResultIndex", "(I)V", "GetSetFocusedSearchResultIndex_IHandler", ApiSince=34)>]
member this.FocusedSearchResultIndex : int with get, set

Property Value

a focused search index or #FOCUSED_SEARCH_RESULT_INDEX_NONE

Attributes

Remarks

Property getter documentation:

Gets the focused search result index.

Java documentation for android.widget.TextView.getFocusedSearchResultIndex().

Property setter documentation:

Sets the focused search result index.

The focused search result is drawn in a focused color. Calling #FOCUSED_SEARCH_RESULT_INDEX_NONE for clearing focused search result.

This method must be called after setting search result ranges by #setSearchResultHighlights(int[]).

Java documentation for android.widget.TextView.setFocusedSearchResultIndex(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to