ClipData.Item.CoerceToStyledTextFormatted(Context) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.