Skip to end of metadata
Go to start of metadata

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

Application

Returns a String that is the name of the application that created this file.

Author

Sets or returns a String that is the name of the author that created this file.

Comments

Sets or returns a String that represents the comments attached to this file.

Company

Sets or returns a String that represents any company info added to this file.

CreationDate

Sets or returns an object that represents the creation date of this file.

Keywords

Sets or returns a String that represents any keywords that are added to this file.

LastSavedDate

Sets or returns a DateTime that represents the date this file was last saved.

Manager

Sets or returns a String that represents the name of the manager in charge of this file.

Subject

Sets or returns a String that represents the subject of this file.

Title

Sets or returns a String that is the title of this file.

Methods

Name

Description

Clear()

Clears all the Document properties for this document.

GetCustomProperty(String)

Returns an Object that represents the value of the custom property specified.

GetProperty(DocumentProperties.BuiltInProperty)

Returns an Object that represents the value of the property specified.

GetProperty(String)

Returns an Object that represents the value of the property specified.

RestoreDefaults()

Sets all the Document properties for this document to their default values.

SetCustomProperty(String, Object)

Sets the specified custom property with a certain value.

SetProperty(DocumentProperties.BuiltInProperty, Object)

Sets the value of the specified property.

SetProperty(String, Object)

Sets the value of the specified property.

Nested Classes

Name

Description

BuiltInProperty

DocumentProperties.BuiltInProperty contains a set of built-in document property fields.
  • No labels