Class XmpCollection

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

objectXmpCollection

Derived

XmpArray

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

int

IsReadOnly

Gets a value indicating whether the collection is read-only.

public bool IsReadOnly { get; }

Property Value

bool

this[int]

Gets or sets the element at the specified index.

public IXmpType this[int index] { get; set; }

Property Value

IXmpType

Methods

Add(object)

Adds an XMP data item.

public void Add(object item)

Parameters

item object

An XMP item.

Exceptions

ArgumentNullException

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

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

bool

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&gt;

A IEnumerator<IXmpType> that can be used to iterate through the collection.

GetXmlValue()

Converts XMP value to the XML representation.

public string GetXmlValue()

Returns

string

Returns the XMP value converted to the XML representation.

GetXmpRepresentation()

Gets the XMP string value of this.

public string GetXmpRepresentation()

Returns

string

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

int

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

bool

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

string

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

string

A System.String that represents this instance. </ixmptype></ixmptype></ixmptype>