BuiltInDocumentPropertyCollection
BuiltInDocumentPropertyCollection class
A collection of built-in document properties.
class BuiltInDocumentPropertyCollection extends DocumentPropertyCollection;
Remarks
Provides access to DocumentProperty objects by their names (using an indexer) and via a set of typed properties that return values of appropriate types.
Constructors
Name | Description |
---|---|
constructor(DocumentPropertyCollection) | Constructs from a parent object convertible to this. |
Properties
Property | Type | Description |
---|---|---|
language | string | Gets or sets the document’s language. |
author | string | Gets or sets the name of the document’s author. |
comments | string | Gets or sets the document comments. |
category | string | Gets or sets the category of the document. |
contentType | string | Gets or sets the content type of the document. |
contentStatus | string | Gets or sets the content status of the document. |
company | string | Gets or sets the company property. |
hyperlinkBase | string | Gets or sets the hyperlinkbase property. |
createdTime | Date | Gets or sets date of the document creation in local timezone. |
createdUniversalTime | Date | Gets or sets the Universal time of the document creation. |
keywords | string | Gets or sets the document keywords. |
lastPrinted | Date | Gets or sets the date when the document was last printed in local timezone. |
lastPrintedUniversalTime | Date | Gets or sets the Universal time when the document was last printed. |
lastSavedBy | string | Gets or sets the name of the last author. |
lastSavedTime | Date | Gets or sets the time of the last save in local timezone. |
lastSavedUniversalTime | Date | Gets or sets the universal time of the last save. |
manager | string | Gets or sets the manager property. |
nameOfApplication | string | Gets or sets the name of the application. |
pages | number | Represents an estimate of the number of pages in the document. |
revisionNumber | string | Gets or sets the document revision number. |
subject | string | Gets or sets the subject of the document. |
template | string | Gets or sets the informational name of the document template. |
title | string | Gets or sets the title of the document. |
totalEditingTime | number | Gets or sets the total editing time in minutes. |
version | string | Represents the version number of the application that created the document. |
documentVersion | string | Represents the version of the file. |
scaleCrop | boolean | Indicates the display mode of the document thumbnail. |
linksUpToDate | boolean | Indicates whether hyperlinks in a document are up-to-date. |
words | number | Represents an estimate of the number of words in the document. |
Methods
Method | Description |
---|---|
get(string) | Returns a DocumentProperty object by the name of the property. |
get(number) | Returns a DocumentProperty object by index. |
contains(string) | Returns true if a property with the specified name exists in the collection. |
indexOf(string) | Gets the index of a property by name. |
remove(string) | Removes a property with the specified name from the collection. |
removeAt(number) | Removes a property at the specified index. |
constructor(DocumentPropertyCollection)
Constructs from a parent object convertible to this.
constructor(obj: DocumentPropertyCollection);
Parameters:
Parameter | Type | Description |
---|---|---|
obj | DocumentPropertyCollection | The parent object. |
language
Gets or sets the document’s language.
language : string;
author
Gets or sets the name of the document’s author.
author : string;
comments
Gets or sets the document comments.
comments : string;
category
Gets or sets the category of the document.
category : string;
contentType
Gets or sets the content type of the document.
contentType : string;
contentStatus
Gets or sets the content status of the document.
contentStatus : string;
company
Gets or sets the company property.
company : string;
hyperlinkBase
Gets or sets the hyperlinkbase property.
hyperlinkBase : string;
createdTime
Gets or sets date of the document creation in local timezone.
createdTime : Date;
Remarks
Aspose.Cells does not update this property when you modify the document.
createdUniversalTime
Gets or sets the Universal time of the document creation.
createdUniversalTime : Date;
Remarks
Aspose.Cells does not update this property when you modify the document.
keywords
Gets or sets the document keywords.
keywords : string;
lastPrinted
Gets or sets the date when the document was last printed in local timezone.
lastPrinted : Date;
Remarks
If the document was never printed, this property will return DateTime.MinValue.
Aspose.Cells does not update this property when you modify the document.
lastPrintedUniversalTime
Gets or sets the Universal time when the document was last printed.
lastPrintedUniversalTime : Date;
lastSavedBy
Gets or sets the name of the last author.
lastSavedBy : string;
Remarks
Aspose.Cells does not update this property when you modify the document.
lastSavedTime
Gets or sets the time of the last save in local timezone.
lastSavedTime : Date;
Remarks
Aspose.Cells does not update this property when you modify the document.
lastSavedUniversalTime
Gets or sets the universal time of the last save.
lastSavedUniversalTime : Date;
Remarks
Aspose.Cells does not update this property when you modify the document.
manager
Gets or sets the manager property.
manager : string;
nameOfApplication
Gets or sets the name of the application.
nameOfApplication : string;
pages
Represents an estimate of the number of pages in the document.
pages : number;
revisionNumber
Gets or sets the document revision number.
revisionNumber : string;
Remarks
Aspose.Cells does not update this property when you modify the document.
subject
Gets or sets the subject of the document.
subject : string;
template
Gets or sets the informational name of the document template.
template : string;
title
Gets or sets the title of the document.
title : string;
totalEditingTime
Gets or sets the total editing time in minutes.
totalEditingTime : number;
version
Represents the version number of the application that created the document.
version : string;
Remarks
It’s format is “00.0000”,for example : 12.0000
documentVersion
Represents the version of the file.
documentVersion : string;
scaleCrop
Indicates the display mode of the document thumbnail.
scaleCrop : boolean;
linksUpToDate
Indicates whether hyperlinks in a document are up-to-date.
linksUpToDate : boolean;
words
Represents an estimate of the number of words in the document.
words : number;
get(string)
Returns a DocumentProperty object by the name of the property.
get(name: string) : DocumentProperty;
Parameters:
Parameter | Type | Description |
---|---|---|
name | string | The case-insensitive name of the property to retrieve. |
Returns
Remarks
The string names of the properties correspond to the names of the typed properties available from BuiltInDocumentPropertyCollection.
If you request a property that is not present in the document, but the name of the property is recognized as a valid built-in name, a new DocumentProperty is created, added to the collection and returned. The newly created property is assigned a default value (empty string, zero, false or DateTime.MinValue depending on the type of the built-in property).
If you request a property that is not present in the document and the name is not recognized as a built-in name, a null is returned.
get(number)
Returns a DocumentProperty object by index.
get(index: number) : DocumentProperty;
Parameters:
Parameter | Type | Description |
---|---|---|
index | number | Zero-based index of the DocumentProperty to retrieve. |
Returns
contains(string)
Returns true if a property with the specified name exists in the collection.
contains(name: string) : boolean;
Parameters:
Parameter | Type | Description |
---|---|---|
name | string | The case-insensitive name of the property. |
Returns
True if the property exists in the collection; false otherwise.
indexOf(string)
Gets the index of a property by name.
indexOf(name: string) : number;
Parameters:
Parameter | Type | Description |
---|---|---|
name | string | The case-insensitive name of the property. |
Returns
The zero based index. Negative value if not found.
remove(string)
Removes a property with the specified name from the collection.
remove(name: string) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
name | string | The case-insensitive name of the property. |
removeAt(number)
Removes a property at the specified index.
removeAt(index: number) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
index | number | The zero based index. |