AutoCompleteTextView.ListSelection Property

Definition

Get the position of the dropdown view selection, if there is one. -or- Set the position of the dropdown view selection.

public virtual int ListSelection { [Android.Runtime.Register("getListSelection", "()I", "GetGetListSelectionHandler")] get; [Android.Runtime.Register("setListSelection", "(I)V", "GetSetListSelection_IHandler")] set; }
[<get: Android.Runtime.Register("getListSelection", "()I", "GetGetListSelectionHandler")>]
[<set: Android.Runtime.Register("setListSelection", "(I)V", "GetSetListSelection_IHandler")>]
member this.ListSelection : int with get, set

Property Value

the position of the current selection, if there is one, or ListView#INVALID_POSITION ListView.INVALID_POSITION if not.

Attributes

Remarks

Property getter documentation:

Get the position of the dropdown view selection, if there is one. Returns ListView#INVALID_POSITION ListView.INVALID_POSITION if there is no dropdown or if there is no selection.

Java documentation for android.widget.AutoCompleteTextView.getListSelection().

Property setter documentation:

Set the position of the dropdown view selection.

Java documentation for android.widget.AutoCompleteTextView.setListSelection(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

See also