ClipData.Item.CoerceToStyledTextFormatted(Context) Method

Definition

Like #coerceToHtmlText(Context), but any text that would be returned as HTML formatting will be returned as text with style spans.

[Android.Runtime.Register("coerceToStyledText", "(Landroid/content/Context;)Ljava/lang/CharSequence;", "GetCoerceToStyledText_Landroid_content_Context_Handler")]
public virtual Java.Lang.ICharSequence CoerceToStyledTextFormatted (Android.Content.Context context);
[<Android.Runtime.Register("coerceToStyledText", "(Landroid/content/Context;)Ljava/lang/CharSequence;", "GetCoerceToStyledText_Landroid_content_Context_Handler")>]
abstract member CoerceToStyledTextFormatted : Android.Content.Context -> Java.Lang.ICharSequence
override this.CoerceToStyledTextFormatted : Android.Content.Context -> Java.Lang.ICharSequence

Parameters

context
Context

The caller's Context, from which its ContentResolver and other things can be retrieved.

Returns

Returns the item's textual representation.

Attributes

Remarks

Like #coerceToHtmlText(Context), but any text that would be returned as HTML formatting will be returned as text with style spans.

Java documentation for android.content.ClipData.Item.coerceToStyledText(android.content.Context).

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