**Inheritance:**
java.lang.Object
```
public class CdrTextCollection
```

The Cdr text collection
## Constructors

| Constructor | Description |
| --- | --- |
| [CdrTextCollection()](#CdrTextCollection--) |  |
## Methods

| Method | Description |
| --- | --- |
| [add(int key, CdrText cdrText)](#add-int-com.aspose.imaging.fileformats.cdr.objects.CdrText-) | Adds the text. |
| [getText(int key)](#getText-int-) | Gets the text. |
### CdrTextCollection() {#CdrTextCollection--}
```
public CdrTextCollection()
```


### add(int key, CdrText cdrText) {#add-int-com.aspose.imaging.fileformats.cdr.objects.CdrText-}
```
public final void add(int key, CdrText cdrText)
```


Adds the text.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| key | int | Key of the text. |
| cdrText | [CdrText](../../com.aspose.imaging.fileformats.cdr.objects/cdrtext) | The CDR text. |

### getText(int key) {#getText-int-}
```
public final CdrText[] getText(int key)
```


Gets the text.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| key | int | Key of the text |

**Returns:**
com.aspose.imaging.fileformats.cdr.objects.CdrText[] - The cdr text instance
