HtmlInsertOptions
Overview
HtmlInsertOptions is an enum in Aspose.Words FOSS for Java.
Specifies options for the DocumentBuilder.insertHtml() method.
Edition status of its 12 listed members (a property and its accessor methods are listed separately, overloads once): 12 not yet exercised by a verified example.
This enum declares 7 methods for HtmlInsertOptions objects in Java programs.
Available methods include: fromName, fromNames, getName, getNames, getValues, toString, toStringSet.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: values.
Values
| Value | Description |
|---|---|
NONE | Use the default options when inserting HTML. |
USE_BUILDER_FORMATTING | Use font and paragraph formatting specified in DocumentBuilder as base formatting for text inserted from HTML. |
REMOVE_LAST_EMPTY_PARAGRAPH | Remove the empty paragraph that is normally inserted after HTML that ends with a block-level element. |
PRESERVE_BLOCKS | Preserve properties of block-level elements. |
Properties
| Name | Type | Access | Description |
|---|---|---|---|
values | int[] | Read | Returns array of HtmlInsertOptions values. |
Methods
| Signature | Description |
|---|---|
getName(htmlInsertOptions: int) → String | Returns JAVA_STYLE string representation of integer HtmlInsertOptions value. |
getNames(htmlInsertOptions: int) → Set<String> | Returns string representation of integer HtmlInsertOptions value. |
toString(htmlInsertOptions: int) → String | Returns DotNetStyle string representation of integer HtmlInsertOptions value. |
toStringSet(attr: int) → String | Returns DotNetStyle string representation of integer HtmlInsertOptions value. |
fromName(htmlInsertOptionsName: String) → int | Returns integer representation by HtmlInsertOptions name. |
fromNames(htmlInsertOptionsNames: Set<String>) → int | Returns flags integer representation by HtmlInsertOptions names. |
getValues() → int[] | Returns array of HtmlInsertOptions values. |