Description
This class contains all file properties that are used by Word and Windows Explorer to display and store metadata about documents. None of these properties will affect the content of a document.
C#
vb.net
Remarks
You cannot create a DocumentProperties object using the new
keyword. You must get an existing DocumentProperties
object from a Document.
MS Word equivalent: File menu > Properties
The following sample gets the DocumentProperties of a document so you can start working with these properties.
Examples
C#
vb.net
Properties
Name |
Description |
---|---|
Returns a String that is the name of the application that created this file. |
|
Sets or returns a String that is the name of the author that created this file. |
|
Sets or returns a String that represents the comments attached to this file. |
|
Sets or returns a String that represents any company info added to this file. |
|
Sets or returns an object that represents the creation date of this file. | |
Sets or returns a String that represents any keywords that are added to this file. |
|
Sets or returns a DateTime that represents the date this file was last saved. | |
Sets or returns a String that represents the name of the manager in charge of this file. |
|
Sets or returns a String that represents the subject of this file. |
|
Sets or returns a String that is the title of this file. |
Methods
Name |
Description |
---|---|
Clears all the Document properties for this document. | |
Returns an Object that represents the value of the custom property specified. |
|
Returns an Object that represents the value of the property specified. |
|
Returns an Object that represents the value of the property specified. |
|
Sets all the Document properties for this document to their default values. | |
Sets the specified custom property with a certain value. | |
Sets the value of the specified property. | |
Sets the value of the specified property. |
Nested Classes
Name |
Description |
---|---|
DocumentProperties.BuiltInProperty contains a set of built-in document property fields. |