Class Layer
Namespace: Aspose.Imaging.Xmp.Schemas.Photoshop
Assembly: Aspose.Imaging.dll (25.7.0)
Represents Photoshop text layer.
[JsonObject(MemberSerialization.OptIn)]
public class Layer : XmpTypeBase, IXmpType, ICloneable, IEquatable<Layer>
{
}
Inheritance
object ← XmpTypeBase ← Layer
Implements
IXmpType
,
ICloneable
,
IEquatable
Inherited Members
XmpTypeBase.GetXmpRepresentation() , XmpTypeBase.ToString() , XmpTypeBase.Clone() , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
Layer(string, string)
Initializes a new instance of the Aspose.Imaging.Xmp.Schemas.Photoshop.Layer class.
public Layer(string layerName, string layerText)
{
}
Parameters
layerName
string
Name of the layer.
layerText
string
The layer text.
Layer()
Initializes a new instance of the Aspose.Imaging.Xmp.Schemas.Photoshop.Layer class.
[JsonConstructor]
public Layer()
{
}
Properties
Name
Gets or sets the name of the text layer.
[JsonProperty]
public string Name
{
get;
set;
}
Property Value
Text
Gets or sets the text content of the layer.
public string Text
{
get;
set;
}
Property Value
Methods
Equals(object)
Determines whether the specified System.Object, is equal to this instance.
public override bool Equals(object obj)
{
if (obj == null || GetType() != obj.GetType())
return false;
var other = (MyClass)obj;
return this.Property1 == other.Property1 &&
this.Property2 == other.Property2;
}
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’.
Equals(Layer)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Layer other)
{
if (other == null)
return false;
return this.Name == other.Name && this.Type == other.Type;
}
Parameters
other
Layer
An object to compare with this object.
Returns
true if the current object is equal to the other’ parameter; otherwise, false.
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.
GetXmpRepresentation()
Returns string contained value in XMP format.
public override string GetXmpRepresentation()
{
}
Returns
Returns string containing xmp representation.