Compartilhar via


AbsListView.IsItemChecked(Int32) Method

Definition

Returns the checked state of the specified position.

[Android.Runtime.Register("isItemChecked", "(I)Z", "GetIsItemChecked_IHandler")]
public virtual bool IsItemChecked (int position);
[<Android.Runtime.Register("isItemChecked", "(I)Z", "GetIsItemChecked_IHandler")>]
abstract member IsItemChecked : int -> bool
override this.IsItemChecked : int -> bool

Parameters

position
Int32

The item whose checked state to return

Returns

The item's checked state or false if choice mode is invalid

Attributes

Remarks

Returns the checked state of the specified position. The result is only valid if the choice mode has been set to #CHOICE_MODE_SINGLE or #CHOICE_MODE_MULTIPLE.

Java documentation for android.widget.AbsListView.isItemChecked(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