Class XmpElementBase
Namespace: Aspose.Imaging.Xmp
Assembly: Aspose.Imaging.dll (25.8.0)
Represents base xmp element contains attributes.
public abstract class XmpElementBase : IEquatable<xmpelementbase>Inheritance
Derived
Implements
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=""> attributesField Value
Dictionary < string , string >
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
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
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
Returns the attribute for specified attribute name.
GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()Returns
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. </string,></xmpelementbase>