Udostępnij za pośrednictwem


IListAdapter.IsEnabled(Int32) Method

Definition

Returns true if the item at the specified position is not a separator.

[Android.Runtime.Register("isEnabled", "(I)Z", "GetIsEnabled_IHandler:Android.Widget.IListAdapterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool IsEnabled (int position);
[<Android.Runtime.Register("isEnabled", "(I)Z", "GetIsEnabled_IHandler:Android.Widget.IListAdapterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member IsEnabled : int -> bool

Parameters

position
Int32

Index of the item

Returns

True if the item is not a separator

Attributes

Remarks

Returns true if the item at the specified position is not a separator. (A separator is a non-selectable, non-clickable item).

The result is unspecified if position is invalid. An ArrayIndexOutOfBoundsException should be thrown in that case for fast failure.

Java documentation for android.widget.ListAdapter.isEnabled(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