HtmlInsertOptions

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

ValueDescription
NONEUse the default options when inserting HTML.
USE_BUILDER_FORMATTINGUse font and paragraph formatting specified in DocumentBuilder as base formatting for text inserted from HTML.
REMOVE_LAST_EMPTY_PARAGRAPHRemove the empty paragraph that is normally inserted after HTML that ends with a block-level element.
PRESERVE_BLOCKSPreserve properties of block-level elements.

Properties

NameTypeAccessDescription
valuesint[]ReadReturns array of HtmlInsertOptions values.

Methods

SignatureDescription
getName(htmlInsertOptions: int) → StringReturns JAVA_STYLE string representation of integer HtmlInsertOptions value.
getNames(htmlInsertOptions: int) → Set<String>Returns string representation of integer HtmlInsertOptions value.
toString(htmlInsertOptions: int) → StringReturns DotNetStyle string representation of integer HtmlInsertOptions value.
toStringSet(attr: int) → StringReturns DotNetStyle string representation of integer HtmlInsertOptions value.
fromName(htmlInsertOptionsName: String) → intReturns integer representation by HtmlInsertOptions name.
fromNames(htmlInsertOptionsNames: Set<String>) → intReturns flags integer representation by HtmlInsertOptions names.
getValues() → int[]Returns array of HtmlInsertOptions values.

See Also