Partager via


PreferenceGroup.OrderingAsAdded Property

Definition

Whether this group is ordering preferences in the order they are added. -or- Whether to order the Preference children of this group as they are added.

public virtual bool OrderingAsAdded { [Android.Runtime.Register("isOrderingAsAdded", "()Z", "GetIsOrderingAsAddedHandler")] get; [Android.Runtime.Register("setOrderingAsAdded", "(Z)V", "GetSetOrderingAsAdded_ZHandler")] set; }
[<get: Android.Runtime.Register("isOrderingAsAdded", "()Z", "GetIsOrderingAsAddedHandler")>]
[<set: Android.Runtime.Register("setOrderingAsAdded", "(Z)V", "GetSetOrderingAsAdded_ZHandler")>]
member this.OrderingAsAdded : bool with get, set

Property Value

Whether this group orders based on the order the children are added.

Attributes

Remarks

Property getter documentation:

Whether this group is ordering preferences in the order they are added.

Java documentation for android.preference.PreferenceGroup.isOrderingAsAdded().

Property setter documentation:

Whether to order the Preference children of this group as they are added. If this is false, the ordering will follow each Preference order and default to alphabetic for those without an order.

If this is called after preferences are added, they will not be re-ordered in the order they were added, hence call this method early on.

Java documentation for android.preference.PreferenceGroup.setOrderingAsAdded(boolean).

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