CustomDocumentPropertyCollection

CustomDocumentPropertyCollection class

A collection of custom document properties.

Properties

NameTypeDescription
Countint
Item (java.lang.String)DocumentPropertyReturns a DocumentProperty object by the name of the property. Returns null if a property with the specified name is not
Item (int)DocumentPropertyReturns a DocumentProperty object by index.

Methods

NameDescription
addCreates a new custom document property of the PropertyType.String data type.
addLinkToContentCreates a new custom document property which links to content.
updateLinkedPropertyValueUpdate custom document property value which links to content.
updateLinkedRangeUpdate custom document property value to linked range.
containsReturns true if a property with the specified name exists in the collection.
indexOfGets the index of a property by name.
removeRemoves a property with the specified name from the collection.
removeAtRemoves a property at the specified index.
clear
iterator
getReserved for internal use.

CustomDocumentPropertyCollection.Count property

Type: int

CustomDocumentPropertyCollection.Item (java.lang.String) property

Returns a DocumentProperty object by the name of the property. Returns null if a property with the specified name is not found.

Type: DocumentProperty

CustomDocumentPropertyCollection.Item (int) property

Returns a DocumentProperty object by index.

Type: DocumentProperty

add(name, value) (1 of 6)

Creates a new custom document property of the PropertyType.String data type.

ParameterTypeDescription
nameStringThe name of the property.
valueStringThe value of the property.

Returns: The newly created property object.


add(name, value) (2 of 6)

Creates a new custom document property of the PropertyType.Number data type.

ParameterTypeDescription
nameStringThe name of the property.
valueintThe value of the property.

Returns: The newly created property object.


add(name, value) (3 of 6)

Creates a new custom document property of the PropertyType.DateTime data type.

ParameterTypeDescription
nameStringThe name of the property.
valueDateTimeThe value of the property.

Returns: The newly created property object.


add(name, value) (4 of 6)

Creates a new custom document property of the PropertyType.Boolean data type.

ParameterTypeDescription
nameStringThe name of the property.
valuebooleanThe value of the property.

Returns: The newly created property object.


add(name, value) (5 of 6)

Creates a new custom document property of the PropertyType.Float data type.

ParameterTypeDescription
nameStringThe name of the property.
valuefloatThe value of the property.

Returns: The newly created property object.


add(value) (6 of 6)

Reserved for internal use.

addLinkToContent(name, source)

Creates a new custom document property which links to content.

ParameterTypeDescription
nameStringThe name of the property.
sourceStringThe source of the property

Returns: The newly created property object.

updateLinkedPropertyValue()

Update custom document property value which links to content.

updateLinkedRange()

Update custom document property value to linked range.

contains(name) (1 of 2)

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

ParameterTypeDescription
nameStringThe case-insensitive name of the property.

Returns: True if the property exists in the collection; false otherwise.


contains(value) (2 of 2)

Reserved for internal use.

indexOf(name) (1 of 2)

Gets the index of a property by name.

ParameterTypeDescription
nameStringThe case-insensitive name of the property.

Returns: The zero based index. Negative value if not found.


indexOf(value) (2 of 2)

Reserved for internal use.

remove(name)

Removes a property with the specified name from the collection.

ParameterTypeDescription
nameStringThe case-insensitive name of the property.

removeAt(index)

Removes a property at the specified index.

ParameterTypeDescription
indexintThe zero based index.

clear()

iterator()

get(index)

Reserved for internal use.