{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.{excerpt}
{signature:C#}
 public sealed class DocumentProperties
{signature}{signature:vb.net}
Public NotInheritable Class DocumentProperties
{signature}
{remarks}You cannot create a [DocumentProperties|DocumentProperties] object using the {{new}} keyword. You must get an existing {{DocumentProperties}} object from a [Document|Document].

MS Word equivalent: File menu > Properties

The following sample gets the DocumentProperties of a document so you can start working with these properties.

{remarks}
{example}{code:csharp|title=C#}

          WordApplication app = new WordApplication();
          Document doc = app.Create();
          DocumentProperties docProps = doc.DocumentProperties;
        {code}
{code:vb.net|title=vb.net}

          Dim app As New WordApplication()
          Dim doc As Document = app.Create()
          Dim docProps As DocumentProperties = doc.DocumentProperties
        {code}

{example}
{properties}
||Name||Description||
|[Application|DocumentProperties.Application]|{excerpt-include:DocumentProperties.Application|nopanel=true}|
|[Author|DocumentProperties.Author]|{excerpt-include:DocumentProperties.Author|nopanel=true}|
|[Comments|DocumentProperties.Comments]|{excerpt-include:DocumentProperties.Comments|nopanel=true}|
|[Company|DocumentProperties.Company]|{excerpt-include:DocumentProperties.Company|nopanel=true}|
|[CreationDate|DocumentProperties.CreationDate]|{excerpt-include:DocumentProperties.CreationDate|nopanel=true}|
|[Keywords|DocumentProperties.Keywords]|{excerpt-include:DocumentProperties.Keywords|nopanel=true}|
|[LastSavedDate|DocumentProperties.LastSavedDate]|{excerpt-include:DocumentProperties.LastSavedDate|nopanel=true}|
|[Manager|DocumentProperties.Manager]|{excerpt-include:DocumentProperties.Manager|nopanel=true}|
|[Subject|DocumentProperties.Subject]|{excerpt-include:DocumentProperties.Subject|nopanel=true}|
|[Title|DocumentProperties.Title]|{excerpt-include:DocumentProperties.Title|nopanel=true}|
{methods}
||Name||Description||
|[Clear()|DocumentProperties.Clear()]|{excerpt-include:DocumentProperties.Clear()|nopanel=true}|
|[GetCustomProperty(String)|DocumentProperties.GetCustomProperty(String)]|{excerpt-include:DocumentProperties.GetCustomProperty(String)|nopanel=true}|
|[GetProperty(DocumentProperties.BuiltInProperty)|DocumentProperties.GetProperty(DocumentProperties.BuiltInProperty)]|{excerpt-include:DocumentProperties.GetProperty(DocumentProperties.BuiltInProperty)|nopanel=true}|
|[GetProperty(String)|DocumentProperties.GetProperty(String)]|{excerpt-include:DocumentProperties.GetProperty(String)|nopanel=true}|
|[RestoreDefaults()|DocumentProperties.RestoreDefaults()]|{excerpt-include:DocumentProperties.RestoreDefaults()|nopanel=true}|
|[SetCustomProperty(String, Object)|DocumentProperties.SetCustomProperty(String, Object)]|{excerpt-include:DocumentProperties.SetCustomProperty(String, Object)|nopanel=true}|
|[SetProperty(DocumentProperties.BuiltInProperty, Object)|DocumentProperties.SetProperty(DocumentProperties.BuiltInProperty, Object)]|{excerpt-include:DocumentProperties.SetProperty(DocumentProperties.BuiltInProperty, Object)|nopanel=true}|
|[SetProperty(String, Object)|DocumentProperties.SetProperty(String, Object)]|{excerpt-include:DocumentProperties.SetProperty(String, Object)|nopanel=true}|
{classes}
||Name||Description||
|[BuiltInProperty|DocumentProperties.BuiltInProperty]|{excerpt-include:DocumentProperties.BuiltInProperty|nopanel=true}|