
**Summary:** The Cdr text collection

**Module:** [aspose.imaging.fileformats.cdr.types](/imaging/python-net/aspose.imaging.fileformats.cdr.types/)

**Full Name:** aspose.imaging.fileformats.cdr.types.CdrTextCollection

## **Constructors**
| **Name** | **Description** |
| :- | :- |
| [CdrTextCollection()](#CdrTextCollection__1) | Initializes a new instance of the CdrTextCollection class |
## **Methods**
| **Name** | **Description** |
| :- | :- |
| [add(key, cdr_text)](#add_key_cdr_text_1) | Adds the text. |
| [get_text(key)](#get_text_key_2) | Gets the text. |


### Constructor: CdrTextCollection() {#CdrTextCollection__1}


```
 CdrTextCollection() 
```

Initializes a new instance of the CdrTextCollection class

### Method: add(key, cdr_text) {#add_key_cdr_text_1}


```
 add(key, cdr_text) 
```

Adds the text.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| key | int | Key of the text. |
| cdr_text | [CdrText](/imaging/python-net/aspose.imaging.fileformats.cdr.objects/cdrtext/) | The CDR text. |

### Method: get_text(key) {#get_text_key_2}


```
 get_text(key) 
```

Gets the text.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| key | int | Key of the text |

**Returns**

| Type | Description |
| :- | :- |
| [CdrText[]](/imaging/python-net/aspose.imaging.fileformats.cdr.objects/cdrtext/) | The cdr text instance |


