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

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.

Signature
C#
C#
[DefaultMember("Item")]
 public sealed class DocumentProperties
Signature
vb.net
vb.net
<DefaultMember("Item")> _
	Public NotInheritable Class DocumentProperties
Remarks

To return a DocumentProperties object, use Presentation.DocumentProperties.

Example
Code Block
csharp
csharp
titleC#

          PowerPointApplication ppta = new PowerPointApplication();
          Presentation pres = ppta.Create(PowerPointWriter.FileFormat.Pptx);
          DocumentProperties docProps = pres.DocumentProperties;
        
Code Block
vbnet
vbnet
titlevb.net

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

Name

Description

Application

Excerpt Include
DocumentProperties.Application
DocumentProperties.Application
nopaneltrue

Author

Excerpt Include
DocumentProperties.Author
DocumentProperties.Author
nopaneltrue

Category

Excerpt Include
DocumentProperties.Category
DocumentProperties.Category
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

Title

Excerpt Include
DocumentProperties.Title
DocumentProperties.Title
nopaneltrue
Indexers

Name

Description

Item(DocumentProperties.BuiltIn)

Excerpt Include
DocumentProperties.Item(DocumentProperties.BuiltIn)
DocumentProperties.Item(DocumentProperties.BuiltIn)
nopaneltrue

Item(String)

Excerpt Include
DocumentProperties.Item(String)
DocumentProperties.Item(String)
nopaneltrue
Methods

Name

Description

Clear()

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

GetCustomProperty(String)

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

RestoreDefaults()

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

SetCustomProperty(String, Object)

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

Name

Description

BuiltIn

Excerpt Include
DocumentProperties.BuiltIn
DocumentProperties.BuiltIn
nopaneltrue