XmpPackageBaseCollection Class

Summary: Represents collection of XmpPackage.

Module: aspose.imaging.xmp

Full Name: aspose.imaging.xmp.XmpPackageBaseCollection

Constructors

NameDescription
XmpPackageBaseCollection()Initializes a new instance of the XmpPackageBaseCollection class.

Properties

NameTypeAccessDescription
countintrGets the number of elements in the collection.

Methods

NameDescription
add(package)Adds new instance of XmpPackage.
clear()Clear all XmpPackage inside collection.
get_package(namespace_uri)Gets XmpPackage by it’s namespaceURI.
get_packages()Get array of XmpPackage.
remove(package)Removes the specified XMP package.

Constructor: XmpPackageBaseCollection()

 XmpPackageBaseCollection() 

Initializes a new instance of the XmpPackageBaseCollection class.

Method: add(package)

 add(package) 

Adds new instance of XmpPackage.

Parameters:

ParameterTypeDescription
packageXmpPackageThe XMP package to add.

Method: get_package(namespace_uri)

 get_package(namespace_uri) 

Gets XmpPackage by it’s namespaceURI.

Parameters:

ParameterTypeDescription
namespace_uristringThe namespace URI to get package for.

Returns

TypeDescription
XmpPackageReturns XMP package for specified namespace Uri.

Method: get_packages()

 get_packages() 

Get array of XmpPackage.

Returns

TypeDescription
XmpPackage[]Returns an array of XMP packages.

Method: remove(package)

 remove(package) 

Removes the specified XMP package.

Parameters:

ParameterTypeDescription
packageXmpPackageThe XMP package to remove.