Html.ToHtml 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.
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 "<" and "&") 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.