ImportFormatMode

ImportFormatMode

Overview

ImportFormatMode is an enum in Aspose.Words FOSS for Java.

Specifies how formatting is merged when importing content from another document.

Edition status of its 8 listed members (a property and its accessor methods are listed separately, overloads once): 7 not yet exercised by a verified example.

This enum declares 4 methods for ImportFormatMode objects in Java programs. Available methods include: fromName, getName, getValues, toString. Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package. Properties: values.

Values

ValueDescription
USE_DESTINATION_STYLESUse the destination document styles and copy new styles.
KEEP_SOURCE_FORMATTINGCopy all required styles to the destination document, generate unique style names if needed.
KEEP_DIFFERENT_STYLESOnly copy styles that are different from those in the source document.

Properties

NameTypeAccessDescription
valuesint[]ReadReturns array of ImportFormatMode values.

Methods

SignatureDescription
getName(importFormatMode: int) → StringReturns JAVA_STYLE string representation of integer ImportFormatMode value.
toString(importFormatMode: int) → StringReturns DotNetStyle string representation of integer ImportFormatMode value.
fromName(importFormatModeName: String) → intReturns integer representation by ImportFormatMode name.
getValues() → int[]Returns array of ImportFormatMode values.

See Also