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
Inheritance
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, |
Exceptions
| Type | Description |
|---|---|
| FormatException | Thrown if the |
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.