Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Description

Excerpt

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.

Signature
C#
C#
 public sealed class DocumentProperties
Signature
vb.net
vb.net
Public NotInheritable Class DocumentProperties
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.

Example
Code Block
csharp
csharp
titleC#

          WordApplication app = new WordApplication();
          Document doc = app.Create();
          DocumentProperties docProps = doc.DocumentProperties;
        
Code Block
vb.net
vb.net
titlevb.net

          Dim app As New WordApplication()
          Dim doc As Document = app.Create()
          Dim docProps As DocumentProperties = doc.DocumentProperties
        
Properties

Name

Description

Application

Excerpt Include
DocumentProperties.Application
DocumentProperties.Application
nopaneltrue

Author

Excerpt Include
DocumentProperties.Author
DocumentProperties.Author
nopaneltrue

Comments

Excerpt Include
DocumentProperties.Comments
DocumentProperties.Comments
nopaneltrue

Company

Excerpt Include
DocumentProperties.Company
DocumentProperties.Company
nopaneltrue

CreationDate

Excerpt Include
DocumentProperties.CreationDate
DocumentProperties.CreationDate
nopaneltrue

Keywords

Excerpt Include
DocumentProperties.Keywords
DocumentProperties.Keywords
nopaneltrue

LastSavedDate

Excerpt Include
DocumentProperties.LastSavedDate
DocumentProperties.LastSavedDate
nopaneltrue

Manager

Excerpt Include
DocumentProperties.Manager
DocumentProperties.Manager
nopaneltrue

Subject

Excerpt Include
DocumentProperties.Subject
DocumentProperties.Subject
nopaneltrue

Title

Excerpt Include
DocumentProperties.Title
DocumentProperties.Title
nopaneltrue
Methods

Name

Description

Clear()

Excerpt Include
DocumentProperties.Clear()
DocumentProperties.Clear()
nopaneltrue

GetCustomProperty(String)

Excerpt Include
DocumentProperties.GetCustomProperty(String)
DocumentProperties.GetCustomProperty(String)
nopaneltrue

GetProperty(DocumentProperties.BuiltInProperty)

Excerpt Include
DocumentProperties.GetProperty(DocumentProperties.BuiltInProperty)
DocumentProperties.GetProperty(DocumentProperties.BuiltInProperty)
nopaneltrue

GetProperty(String)

Excerpt Include
DocumentProperties.GetProperty(String)
DocumentProperties.GetProperty(String)
nopaneltrue

RestoreDefaults()

Excerpt Include
DocumentProperties.RestoreDefaults()
DocumentProperties.RestoreDefaults()
nopaneltrue

SetCustomProperty(String, Object)

Excerpt Include
DocumentProperties.SetCustomProperty(String, Object)
DocumentProperties.SetCustomProperty(String, Object)
nopaneltrue

SetProperty(DocumentProperties.BuiltInProperty, Object)

Excerpt Include
DocumentProperties.SetProperty(DocumentProperties.BuiltInProperty, Object)
DocumentProperties.SetProperty(DocumentProperties.BuiltInProperty, Object)
nopaneltrue

SetProperty(String, Object)

Excerpt Include
DocumentProperties.SetProperty(String, Object)
DocumentProperties.SetProperty(String, Object)
nopaneltrue
Classes

Name

Description

BuiltInProperty

Excerpt Include
DocumentProperties.BuiltInProperty
DocumentProperties.BuiltInProperty
nopaneltrue