Skip to main content

DocumentAppProperties Class

The base class for document properties that include application properties.

Declaration

public abstract class DocumentAppProperties extends DocumentPropertiesBase

Remarks

The DocumentAppProperties class extends DocumentPropertiesBase with the following application properties:

Method Description
getApplication() Returns the name of the application that created the document.
getVersion() Returns the version of the application that created the document.
getCompany() Returns the name of the company associated with the document.
getManager() Returns the name of the manager associated with the document.
getSecurity() Returns the document security level.

Call the Presentation.getDocumentProperties() method to access document properties of a presentation.

Refer to the following help topic for additional information: Read and Modify Presentation Document Properties.

Inherited Members

com.devexpress.system.JavaObject.clone()
com.devexpress.system.JavaObject.equals(java.lang.Object)
com.devexpress.system.JavaObject.hashCode()
com.devexpress.system.JavaObject.memberwiseClone()
com.devexpress.system.JavaObject.toString()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)

Inheritance

Object
JavaObject
See Also

Methods

getApplication() Method

Returns the name of the application that created the document.

Declaration

public String getApplication()

Returns

Type Description
String

The application name.

getCompany() Method

Returns the name of the company associated with the document.

Declaration

public String getCompany()

Returns

Type Description
String

The company name.

getManager() Method

Returns the name of the manager associated with the document.

Declaration

public String getManager()

Returns

Type Description
String

The manager name.

getSecurity() Method

Returns the document security level.

Declaration

public DocumentSecurityType getSecurity()

Returns

Type Description
DocumentSecurityType

The security level.

Remarks

The getSecurity() method returns the security level that the loaded document specifies. The value can combine multiple DocumentSecurityType flags. For a new presentation, the getSecurity() method returns DocumentSecurityType.NONE.

Value Description
NONE Users can open, edit, copy, and save the document without restrictions.
PASSWORD Users need a password to open the document.
READONLY_RECOMMENDED The application suggests that users open the document in read-only mode.
READONLY_ENFORCED The application opens the document in read-only mode.
LOCKED Users cannot modify the document.

getVersion() Method

Returns the version of the application that created the document.

Declaration

public String getVersion()

Returns

Type Description
String

The application version.

setApplication(String value) Method

Sets the name of the application that created the document.

Declaration

public void setApplication(String value)

Parameters

Name Type Description
value String

The application name.

Remarks

When you create a presentation, the API sets the application name to a string that starts with DevExpress Office File API and includes the product version.

setCompany(String value) Method

Sets the name of the company associated with the document.

Declaration

public void setCompany(String value)

Parameters

Name Type Description
value String

The company name.

setManager(String value) Method

Sets the name of the manager associated with the document.

Declaration

public void setManager(String value)

Parameters

Name Type Description
value String

The manager name.

setVersion(String value) Method

Sets the version of the application that created the document.

Declaration

public void setVersion(String value)

Parameters

Name Type Description
value String

The application version in the XX.YYYY format (for example, 16.0000), an empty string, or null.

Exceptions

Type Description
FormatException

Thrown if the value parameter does not match the XX.YYYY format (one or two digits, a period, and one to four digits). The exception message is “The Version value must follow the XX.YYYY format, where X and Y are numbers”.

Remarks

The value consists of one or two digits, a period, and one to four digits (for example, 16.0000). When you create a presentation, the API sets the application version to the product version.

To specify the document version number, call the DocumentAppProperties.setDocumentVersion(value) method.