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

NameDescription
constructor(DocumentPropertyCollection)Constructs from a parent object convertible to this.

Properties

PropertyTypeDescription
languagestringGets or sets the document’s language.
authorstringGets or sets the name of the document’s author.
commentsstringGets or sets the document comments.
categorystringGets or sets the category of the document.
contentTypestringGets or sets the content type of the document.
contentStatusstringGets or sets the content status of the document.
companystringGets or sets the company property.
hyperlinkBasestringGets or sets the hyperlinkbase property.
createdTimeDateGets or sets date of the document creation in local timezone.
createdUniversalTimeDateGets or sets the Universal time of the document creation.
keywordsstringGets or sets the document keywords.
lastPrintedDateGets or sets the date when the document was last printed in local timezone.
lastPrintedUniversalTimeDateGets or sets the Universal time when the document was last printed.
lastSavedBystringGets or sets the name of the last author.
lastSavedTimeDateGets or sets the time of the last save in local timezone.
lastSavedUniversalTimeDateGets or sets the universal time of the last save.
managerstringGets or sets the manager property.
nameOfApplicationstringGets or sets the name of the application.
pagesnumberRepresents an estimate of the number of pages in the document.
revisionNumberstringGets or sets the document revision number.
subjectstringGets or sets the subject of the document.
templatestringGets or sets the informational name of the document template.
titlestringGets or sets the title of the document.
totalEditingTimenumberGets or sets the total editing time in minutes.
versionstringRepresents the version number of the application that created the document.
documentVersionstringRepresents the version of the file.
scaleCropbooleanIndicates the display mode of the document thumbnail.
linksUpToDatebooleanIndicates whether hyperlinks in a document are up-to-date.
wordsnumberRepresents an estimate of the number of words in the document.

Methods

MethodDescription
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:

ParameterTypeDescription
objDocumentPropertyCollectionThe 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:

ParameterTypeDescription
namestringThe case-insensitive name of the property to retrieve.

Returns

DocumentProperty

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:

ParameterTypeDescription
indexnumberZero-based index of the DocumentProperty to retrieve.

Returns

DocumentProperty

contains(string)

Returns true if a property with the specified name exists in the collection.

contains(name: string) : boolean;

Parameters:

ParameterTypeDescription
namestringThe 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:

ParameterTypeDescription
namestringThe 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:

ParameterTypeDescription
namestringThe case-insensitive name of the property.

removeAt(number)

Removes a property at the specified index.

removeAt(index: number) : void;

Parameters:

ParameterTypeDescription
indexnumberThe zero based index.