Table of Contents

Class Layer

Namespace
Aspose.Imaging.Xmp.Schemas.Photoshop
Assembly
Aspose.Imaging.dll

Represents Photoshop text layer.

public class Layer : XmpTypeBase, IXmpType, IEquatable<Layer>
Inheritance
Layer
Implements
Inherited Members

Constructors

Layer()

Initializes a new instance of the Layer class.

public Layer()

Layer(string, string)

Initializes a new instance of the Layer class.

public Layer(string layerName, string layerText)

Parameters

layerName string

Name of the layer.

layerText string

The layer text.

Properties

Name

Gets or sets the name of the text layer.

public string Name { get; set; }

Property Value

string

The name of the text layer.

Text

Gets or sets the text content of the layer.

public string Text { get; set; }

Property Value

string

The text content of the layer.

Methods

Equals(Layer)

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

public bool Equals(Layer other)

Parameters

other Layer

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.

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.

GetXmpRepresentation()

Returns string contained value in XMP format.

public override string GetXmpRepresentation()

Returns

string

Returns string containing xmp representation.