Class XmpCollection
Namespace: Aspose.Imaging.Xmp
Assembly: Aspose.Imaging.dll (25.2.0)
An XMP element collection.
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
public class XmpCollection : IList<ixmptype>, ICollection<ixmptype>, IEnumerable<ixmptype>, IEnumerable, IXmpType
Inheritance
Derived
Implements
IList<ixmptype>, ICollection<ixmptype>, IEnumerable<ixmptype>, IEnumerable, IXmpType
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
XmpCollection()
[JsonConstructor]
public XmpCollection()
Properties
Count
Gets the number of elements contained in the System.Collections.IList.
public int Count { get; }
Property Value
IsReadOnly
Gets a value indicating whether the collection is read-only.
public bool IsReadOnly { get; }
Property Value
this[int]
Gets or sets the element at the specified index.
public IXmpType this[int index] { get; set; }
Property Value
Methods
Add(object)
Adds an XMP data item.
public void Add(object item)
Parameters
item
object
An XMP item.
Exceptions
ArgumentNullException
Add(IXmpType)
Adds an item to the collection.
public void Add(IXmpType item)
Parameters
item
IXmpType
The object to add to the collection.
AddItem(string)
Adds new item.
public void AddItem(string item)
Parameters
item
string
The item to be added to list of items.
Exceptions
ArgumentNullException
Clear()
Removes all items from the collection.
public void Clear()
Contains(IXmpType)
Determines whether the collection contains a specific value.
public bool Contains(IXmpType item)
Parameters
item
IXmpType
The object to locate in the collection.
Returns
true if item is found in the collection; otherwise, false.
CopyTo(IXmpType[], int)
Copies the elements of the collection to an array, starting at a particular array index.
public void CopyTo(IXmpType[] array, int arrayIndex)
Parameters
array
IXmpType[]
The one-dimensional array that is the destination of the elements copied from the collection. The array must have zero-based indexing.
arrayIndex
int
The zero-based index in array at which copying begins.
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<ixmptype> GetEnumerator()
Returns
IEnumerator<IXmpType>
A IEnumerator<IXmpType> that can be used to iterate through the collection.
GetXmlValue()
Converts XMP value to the XML representation.
public string GetXmlValue()
Returns
Returns the XMP value converted to the XML representation.
GetXmpRepresentation()
Gets the XMP string value of this.
public string GetXmpRepresentation()
Returns
Returns the string contained value in XMP format.
IndexOf(IXmpType)
Determines the index of a specific item in the collection.
public int IndexOf(IXmpType item)
Parameters
item
IXmpType
The object to locate in the collection.
Returns
The index of item if found in the collection; otherwise, -1.
Insert(int, IXmpType)
Inserts an item to the collection at the specified index.
public void Insert(int index, IXmpType item)
Parameters
index
int
The zero-based index at which item should be inserted.
item
IXmpType
The object to insert into the collection.
Remove(IXmpType)
Removes the first occurrence of a specific object from the collection.
public bool Remove(IXmpType item)
Parameters
item
IXmpType
The object to remove from the collection.
Returns
true if item was successfully removed from the collection; otherwise, false. This method also returns false if item is not found in the original collection.
RemoveAt(int)
Removes the item at the specified index.
public void RemoveAt(int index)
Parameters
index
int
The zero-based index of the item to remove.
ToString()
Returns an XML System.String that represents this instance.
public override string ToString()
Returns
An XML System.String that represents this instance.
ToString(object)
Returns a System.String that represents this instance.
protected static string ToString(object obj)
Parameters
obj
object
An object.
Returns
A System.String that represents this instance. </ixmptype></ixmptype></ixmptype>