Document Properties Dialog
- 2 minutes to read
The Document Properties dialog enables end-users to view and modify document metadata accessible by with the Document.DocumentProperties and Document.CustomProperties properties.
Before a dialog is shown, the RichEditControl.DocumentPropertiesFormShowing event occurs.
The dialog contains the following tabs:
#General
The General tab allows end-users to view properties of the document file.
#Summary
The Summary tab allows end-users to edit several built-in document properties:
Dialog Field | Document Field | Document Property |
---|---|---|
Title | TITLE | Document |
Subject | SUBJECT | Document |
Author | AUTHOR | Document |
Manager | DOCPROPERTY Manager | Document |
Company | DOCPROPERTY Company | Document |
Category | DOCPROPERTY Category | Document |
Keywords | KEYWORDS | Document |
Comments | COMMENTS | Document |
Template | TEMPLATE | Document |
#Statistics
The Statistics tab allows end-users to view certain document properties.
Dialog Field | Document Field | Document Property |
---|---|---|
Created | CREATEDATE | Document |
Modified | SAVEDATE | Document |
Accessed | ||
Printed | PRINTDATE | Document |
Last saved by | LASTSAVEDBY | Document |
Revision number | REVNUM | Document |
#Custom
The Custom tab allows end-users to add and edit custom document properties.
Custom properties are contained in the Document.CustomProperties collection. To insert a custom property value in the document, insert the DOCVARIABLE field and handle the RichEditControl.CalculateDocumentVariable event. The event handler obtains a custom property value and assigns it to the CalculateDocumentVariableEventArgs.Value property.
Dialog Field | API |
---|---|
Name | A string used to retrieve a property from the Document. |
Type | The type of the custom property for display in the dialog. The Document |
Value | Use the Document |
Link to content | When checked, the Value field specifies a name of the bookmark whose content is extracted to set the value of a custom property. Assign a Bookmark object instead of any value to the custom document property using the Document |
Properties | A list of all Document |