FromHtmlOptions Enum
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.
public enum FromHtmlOptions
type FromHtmlOptions =
- Inheritance
-
FromHtmlOptions
Fields
| Name | Value | Description |
|---|---|---|
| ModeLegacy | 0 | Flags for fromHtml(String,int,ImageGetter,TagHandler): Separate block-level elements with blank lines (two newline characters) in between. This is the legacy behavior prior to N. Android reference for 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. |
| SeparatorLineBreakParagraph | 1 | Flag indicating that texts inside <p> elements will be separated from other texts with one newline character by default. Android reference for 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. |
| SeparatorLineBreakHeading | 2 | Flag indicating that texts inside <h1>~<h6> elements will be separated from other texts with one newline character by default. Android reference for 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. |
| SeparatorLineBreakListItem | 4 | Flag indicating that texts inside <li> elements will be separated from other texts with one newline character by default. Android reference for 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. |
| SeparatorLineBreakList | 8 | Flag indicating that texts inside <ul> elements will be separated from other texts with one newline character by default. Android reference for 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. |
| SeparatorLineBreakDiv | 16 | Flag indicating that texts inside <div> elements will be separated from other texts with one newline character by default. Android reference for 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. |
| SeparatorLineBreakBlockquote | 32 | Flag indicating that texts inside <blockquote> elements will be separated from other texts with one newline character by default. Android reference for 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. |
| ModeCompact | 63 | Flags for fromHtml(String,int,ImageGetter,TagHandler): Separate block-level elements with line breaks (single newline character) in between. This inverts the Spanned to HTML string conversion done with the option TO_HTML_PARAGRAPH_LINES_INDIVIDUAL. Android reference for 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. |
| OptionUseCssColors | 256 | Flag indicating that CSS color values should be used instead of those defined in Color. Android reference for 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. |
Remarks
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.