DocumentPropertyCollection

DocumentPropertyCollection class

Base class for BuiltInDocumentPropertyCollection and BuiltInDocumentPropertyCollection collections.

class DocumentPropertyCollection;

Methods

MethodDescription
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.
getCount()Gets the number of elements contained in.
get(string)Returns a DocumentProperty object by the name of the property.

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.

getCount()

Gets the number of elements contained in.

getCount() : 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

Returns null if a property with the specified name is not found.