Preference.Order Property

Definition

Gets the order of this Preference with respect to other Preference objects on the same level. -or- Sets the order of this Preference with respect to other Preference objects on the same level.

public virtual int Order { [Android.Runtime.Register("getOrder", "()I", "GetGetOrderHandler")] get; [Android.Runtime.Register("setOrder", "(I)V", "GetSetOrder_IHandler")] set; }
[<get: Android.Runtime.Register("getOrder", "()I", "GetGetOrderHandler")>]
[<set: Android.Runtime.Register("setOrder", "(I)V", "GetSetOrder_IHandler")>]
member this.Order : int with get, set

Property Value

the order of this Preference

Attributes

Remarks

Property getter documentation:

Gets the order of this Preference with respect to other Preference objects on the same level.

Java documentation for android.preference.Preference.getOrder().

Property setter documentation:

Sets the order of this Preference with respect to other Preference objects on the same level. If this is not specified, the default behavior is to sort alphabetically. The PreferenceGroup#setOrderingAsAdded(boolean) can be used to order Preference objects based on the order they appear in the XML.

Java documentation for android.preference.Preference.setOrder(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