次の方法で共有


Html.ToHtml Method

Definition

Overloads

ToHtml(ISpanned)

This member is deprecated.

ToHtml(ISpanned, ToHtmlOptions)

Returns an HTML representation of the provided Spanned text.

ToHtml(ISpanned)

This member is deprecated.

[Android.Runtime.Register("toHtml", "(Landroid/text/Spanned;)Ljava/lang/String;", "")]
public static string? ToHtml (Android.Text.ISpanned? text);
[<Android.Runtime.Register("toHtml", "(Landroid/text/Spanned;)Ljava/lang/String;", "")>]
static member ToHtml : Android.Text.ISpanned -> string

Parameters

text
ISpanned

input text to convert

Returns

Attributes

Remarks

This member is deprecated. use #toHtml(Spanned, int) instead.

Java documentation for android.text.Html.toHtml(android.text.Spanned).

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

ToHtml(ISpanned, ToHtmlOptions)

Returns an HTML representation of the provided Spanned text.

[Android.Runtime.Register("toHtml", "(Landroid/text/Spanned;I)Ljava/lang/String;", "", ApiSince=24)]
public static string? ToHtml (Android.Text.ISpanned? text, Android.Text.ToHtmlOptions option);
[<Android.Runtime.Register("toHtml", "(Landroid/text/Spanned;I)Ljava/lang/String;", "", ApiSince=24)>]
static member ToHtml : Android.Text.ISpanned * Android.Text.ToHtmlOptions -> string

Parameters

text
ISpanned

input text to convert

option
ToHtmlOptions

one of #TO_HTML_PARAGRAPH_LINES_CONSECUTIVE or #TO_HTML_PARAGRAPH_LINES_INDIVIDUAL

Returns

string containing input converted to HTML

Attributes

Remarks

Returns an HTML representation of the provided Spanned text. A best effort is made to add HTML tags corresponding to spans. Also note that HTML metacharacters (such as "&lt;" and "&amp;") within the input text are escaped.

Java documentation for android.text.Html.toHtml(android.text.Spanned, int).

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