共用方式為


Preference.Parent Property

Definition

Returns the PreferenceGroup which is this Preference assigned to or null if this preference is not assigned to any group or is a root Preference.

public virtual Android.Preferences.PreferenceGroup? Parent { [Android.Runtime.Register("getParent", "()Landroid/preference/PreferenceGroup;", "GetGetParentHandler", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getParent", "()Landroid/preference/PreferenceGroup;", "GetGetParentHandler", ApiSince=26)>]
member this.Parent : Android.Preferences.PreferenceGroup

Property Value

the parent PreferenceGroup or null if not attached to any

Attributes

Remarks

Returns the PreferenceGroup which is this Preference assigned to or null if this preference is not assigned to any group or is a root Preference.

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

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