編輯

共用方式為


DocumentProperty Interface

Definition

Represents a custom or built-in document property of a container document.

public interface class DocumentProperty
[System.Runtime.InteropServices.Guid("2DF8D04E-5BFA-101B-BDE5-00AA0044DE52")]
public interface DocumentProperty
[<System.Runtime.InteropServices.Guid("2DF8D04E-5BFA-101B-BDE5-00AA0044DE52")>]
type DocumentProperty = interface
Public Interface DocumentProperty
Attributes

Remarks

The DocumentProperty object is a member of the DocumentProperties collection.

Use BuiltinDocumentProperties(index), where index is the name or index number of the built-in document property, to return a single DocumentProperty object that represents a specific built-in document property. Use CustomDocumentProperties(index), where index is the name or index number of the custom document property, to return a DocumentProperty object that represents a specific custom document property.

The following list contains the names of all the available built-in document properties:

Title

Subject

Author

Keywords

Comments

Template

Last Author

Revision Number

Application Name

Last Print Date

Creation Date

Last Save Time

Total Editing Time

Number of Pages

Number of Words

Number of Characters

Security

Category

Format

Manager

Company

Number of Bytes

Number of Lines

Number of Paragraphs

Number of Slides

Number of Notes

Number of Hidden Slides

Number of Multimedia Clips

Container applications don't necessarily define a value for every built-in document property. If a given application doesn't define a value for one of the built-in document properties, returning the Value property for that document property causes an error.

Properties

Application

Returns an Application object that represents the container application for the object.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

LinkSource

Returns or sets the source of a linked custom document property.

LinkToContent

Determine if the value of the custom document property is linked to the content of the container document.

Name

Returns or sets the name of the specified object.

Parent

Returns the Parent object for the specified object.

Type

Returns or sets the document property type.

Value

Returns or sets the value of a document property.

Methods

Delete()

Removes a custom document property.

Applies to