ContentDisposition

ContentDisposition

Overview

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

Enumerates different ways of presenting the document at the client browser.

Edition status of its 7 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 ContentDisposition 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
ATTACHMENTSend the document to the browser and present an option to save the document to disk or open in the application associated with the document’s extension.
INLINESend the document to the browser and presents an option to save the document to disk or open inside the browser.

Properties

NameTypeAccessDescription
valuesint[]ReadReturns array of ContentDisposition values.

Methods

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

See Also