Table of Contents

Class XmpElementBase

Namespace
Aspose.Imaging.Xmp
Assembly
Aspose.Imaging.dll

Represents base xmp element contains attributes.

public abstract class XmpElementBase : IEquatable<XmpElementBase>
Inheritance
XmpElementBase
Implements
Derived
Inherited Members

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>

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 object, is equal to this instance.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with this instance.

Returns

bool

true if the specified 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.