
**Summary:** Represents Photoshop text layer.

**Module:** [aspose.psd.xmp.schemas.photoshop](/psd/python-net/aspose.psd.xmp.schemas.photoshop/)

**Full Name:** aspose.psd.xmp.schemas.photoshop.Layer

**Inheritance:** IXmpType, XmpTypeBase

**Aspose.PSD Version:** 24.12.0

## **Constructors**
| **Name** | **Description** |
| :- | :- |
| [Layer()](#Layer__1) | Initializes a new instance of the [Layer](/psd/python-net/aspose.psd.xmp.schemas.photoshop/layer/) class. |
| [Layer(layer_name, layer_text)](#Layer_layer_name_layer_text_2) | Initializes a new instance of the [Layer](/psd/python-net/aspose.psd.xmp.schemas.photoshop/layer/) class. |
## **Properties**
| **Name** | **Type** | **Access** | **Description** |
| :- | :- | :- | :- |
| name | string | r/w | Gets or sets the name of the text layer. |
| text | string | r/w | Gets or sets the text content of the layer. |
## **Methods**
| **Name** | **Description** |
| :- | :- |
| [get_xmp_representation()](#get_xmp_representation__1) | Returns string contained value in XMP format. |


### Constructor: Layer() {#Layer__1}


```
 Layer() 
```

Initializes a new instance of the [Layer](/psd/python-net/aspose.psd.xmp.schemas.photoshop/layer/) class.

### Constructor: Layer(layer_name, layer_text) {#Layer_layer_name_layer_text_2}


```
 Layer(layer_name, layer_text) 
```

Initializes a new instance of the [Layer](/psd/python-net/aspose.psd.xmp.schemas.photoshop/layer/) class.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| layer_name | string | Name of the layer. |
| layer_text | string | The layer text. |

### Method: get_xmp_representation() {#get_xmp_representation__1}


```
 get_xmp_representation() 
```

Returns string contained value in XMP format.

**Returns**

| Type | Description |
| :- | :- |
| string | Returns string contained value in XMP format. |


