Class XmpElementBase

Class XmpElementBase

Namespace: Aspose.Imaging.Xmp
Assembly: Aspose.Imaging.dll (25.2.0)

Represents base xmp element contains attributes.

public abstract class XmpElementBase : IEquatable<xmpelementbase>

Inheritance

objectXmpElementBase

Derived

XmpMeta, XmpRdfRoot

Implements

IEquatable<xmpelementbase>

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

XmpElementBase()

protected XmpElementBase()

Fields

attributes

The xmpmeta element can have any number of attributes.

protected readonly Dictionary<string, string=""> attributes

Field Value

Dictionary<string, string&gt;

Methods

AddAttribute(string, string)

Adds the attribute.

public virtual void AddAttribute(string attribute, string value)

Parameters

attribute string

The attribute.

value string

The value.

ClearAttributes()

Removes all attributes.

public virtual void ClearAttributes()

Equals(XmpElementBase)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(XmpElementBase other)

Parameters

other XmpElementBase

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified System.Object, is equal to this instance.

public override bool Equals(object obj)

Parameters

obj object

The System.Object to compare with this instance.

Returns

bool

true if the specified System.Object is equal to this instance; otherwise, false.

GetAttribute(string)

Gets the attribute.

public virtual string GetAttribute(string attribute)

Parameters

attribute string

The attribute.

Returns

string

Returns the attribute for specified attribute name.

GetHashCode()

Returns a hash code for this instance.

public override int GetHashCode()

Returns

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. </string,></xmpelementbase>