语言

SpannedString.GetSpanFlags(Object) Method

Definition

Return the flags that were specified when Spannable.setSpan was used to attach the specified markup object, or 0 if the specified object has not been attached.

[Android.Runtime.Register("getSpanFlags", "(Ljava/lang/Object;)I", "")]
public override Android.Text.SpanTypes GetSpanFlags(Java.Lang.Object? what);
[<Android.Runtime.Register("getSpanFlags", "(Ljava/lang/Object;)I", "")>]
override this.GetSpanFlags : Java.Lang.Object -> Android.Text.SpanTypes

Parameters

what
Object

The attached span object whose flags are requested.

Returns

The span's stored flags, or zero if the object is not attached.

Implements

Attributes

Remarks

Return the flags that were specified when Spannable.setSpan was used to attach the specified markup object, or 0 if the specified object has not been attached.

Android reference for android.text.SpannedString.getSpanFlags.

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