Class XmpPackageBaseCollection
Namespace: Aspose.Imaging.Xmp
Assembly: Aspose.Imaging.dll (25.2.0)
Represents collection of Aspose.Imaging.Xmp.XmpPackage.
[JsonObject(MemberSerialization.OptIn)]
public sealed class XmpPackageBaseCollection : IEnumerable<xmppackage>, IEnumerable
Inheritance
object ← XmpPackageBaseCollection
Implements
IEnumerable<xmppackage>, IEnumerable
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
XmpPackageBaseCollection()
[JsonConstructor]
public XmpPackageBaseCollection()
Properties
Count
Gets the number of elements in the collection.
public int Count { get; }
Property Value
Methods
Add(XmpPackage)
Adds new instance of Aspose.Imaging.Xmp.XmpPackage.
public void Add(XmpPackage package)
Parameters
package
XmpPackage
The XMP package to add.
Clear()
Clear all Aspose.Imaging.Xmp.XmpPackage inside collection.
public void Clear()
GetEnumerator()
Returns an enumerator that iterates through a collection.
public IEnumerator GetEnumerator()
Returns
An System.Collections.IEnumerator object that can be used to iterate through the collection.
GetPackage(string)
Gets Aspose.Imaging.Xmp.XmpPackage by it’s namespaceURI.
public XmpPackage GetPackage(string namespaceUri)
Parameters
namespaceUri
string
The namespace URI to get package for.
Returns
Returns XMP package for specified namespace Uri.
GetPackages()
Get array of Aspose.Imaging.Xmp.XmpPackage.
public XmpPackage[] GetPackages()
Returns
Returns an array of XMP packages.
Remove(XmpPackage)
Removes the specified XMP package.
public void Remove(XmpPackage package)
Parameters
package
XmpPackage
The XMP package to remove. </xmppackage>