The DocumentProperties object represents properties of a spreadsheet.

  • In PowerPoint 2003 these properties can be accessed via (File -> Properties).
  • In PowerPoint 2007 they can be accessed via (Ribbon button -> Prepare -> Properties).
  • In PowerPoint 2010 they can be accessed via (File -> Info -> Show All Properties on the right).
  • In Windows Explorer, right-click on the file and select 'Properties'.

The DocumentProperties class can be used to remove personal information from an existing spreadsheet, or to populate searchable fields that can be used to locate the file.

[DefaultMember("Item")]
 public sealed class DocumentProperties
<DefaultMember("Item")> _
	Public NotInheritable Class DocumentProperties

To return a DocumentProperties object, use Presentation.DocumentProperties.

          PowerPointApplication ppta = new PowerPointApplication();
          Presentation pres = ppta.Create(PowerPointWriter.FileFormat.Pptx);
          DocumentProperties docProps = pres.DocumentProperties;
        
          Dim ppta As New PowerPointApplication()
          Dim pres As Presentation = ppta.Create(PowerPointWriter.FileFormat.Pptx)
          Dim docProps = pres.DocumentProperties
        

Name

Description

Application

Author

Category

Comments

Company

CreationDate

Keywords

LastSavedDate

Manager

Title

Name

Description

Item(DocumentProperties.BuiltIn)

Item(String)

Name

Description

Clear()

GetCustomProperty(String)

RestoreDefaults()

SetCustomProperty(String, Object)

Name

Description

BuiltIn