次の方法で共有


Preference.CompareTo(Preference) Method

Definition

Compares Preference objects based on order (if set), otherwise alphabetically on the titles.

[Android.Runtime.Register("compareTo", "(Landroid/preference/Preference;)I", "GetCompareTo_Landroid_preference_Preference_Handler")]
public virtual int CompareTo (Android.Preferences.Preference? another);
[<Android.Runtime.Register("compareTo", "(Landroid/preference/Preference;)I", "GetCompareTo_Landroid_preference_Preference_Handler")>]
abstract member CompareTo : Android.Preferences.Preference -> int
override this.CompareTo : Android.Preferences.Preference -> int

Parameters

another
Preference

The Preference to compare to this one.

Returns

0 if the same; less than 0 if this Preference sorts ahead of <var>another</var>; greater than 0 if this Preference sorts after <var>another</var>.

Attributes

Remarks

Compares Preference objects based on order (if set), otherwise alphabetically on the titles.

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

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