**Inheritance:**
java.lang.Object, [com.aspose.imaging.DisposableObject](../../com.aspose.imaging/disposableobject), [com.aspose.imaging.fileformats.cdr.objects.CdrObject](../../com.aspose.imaging.fileformats.cdr.objects/cdrobject), [com.aspose.imaging.fileformats.cdr.objects.CdrDictionaryItem](../../com.aspose.imaging.fileformats.cdr.objects/cdrdictionaryitem)
```
public class CdrText extends CdrDictionaryItem
```

The cdr text
## Constructors

| Constructor | Description |
| --- | --- |
| [CdrText()](#CdrText--) | Initializes a new instance of the [CdrText](../../com.aspose.imaging.fileformats.cdr.objects/cdrtext) class. |
## Methods

| Method | Description |
| --- | --- |
| [getText()](#getText--) | Gets the CDR text boxes. |
| [setText(String value)](#setText-java.lang.String-) | Sets the CDR text boxes. |
| [getCharDescriptors()](#getCharDescriptors--) | Initializes a new instance of the [CdrText](../../com.aspose.imaging.fileformats.cdr.objects/cdrtext) class. |
| [setCharDescriptors(byte[] value)](#setCharDescriptors-byte---) | Initializes a new instance of the [CdrText](../../com.aspose.imaging.fileformats.cdr.objects/cdrtext) class. |
| [getStyles()](#getStyles--) | Adds the text box. |
| [setStyles(CdrStyle[] value)](#setStyles-com.aspose.imaging.fileformats.cdr.objects.CdrStyle---) | Adds the text box. |
| [getStyleId()](#getStyleId--) | Gets the style identifier. |
| [setStyleId(int value)](#setStyleId-int-) | Sets the style identifier. |
### CdrText() {#CdrText--}
```
public CdrText()
```


Initializes a new instance of the [CdrText](../../com.aspose.imaging.fileformats.cdr.objects/cdrtext) class.

### getText() {#getText--}
```
public final String getText()
```


Gets the CDR text boxes.

Value: The CDR text boxes.

**Returns:**
java.lang.String - the CDR text boxes.
### setText(String value) {#setText-java.lang.String-}
```
public final void setText(String value)
```


Sets the CDR text boxes.

Value: The CDR text boxes.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String | the CDR text boxes. |

### getCharDescriptors() {#getCharDescriptors--}
```
public final byte[] getCharDescriptors()
```


Initializes a new instance of the [CdrText](../../com.aspose.imaging.fileformats.cdr.objects/cdrtext) class.

Value: The character descriptors.

**Returns:**
byte[]
### setCharDescriptors(byte[] value) {#setCharDescriptors-byte---}
```
public final void setCharDescriptors(byte[] value)
```


Initializes a new instance of the [CdrText](../../com.aspose.imaging.fileformats.cdr.objects/cdrtext) class.

Value: The character descriptors.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | byte[] |  |

### getStyles() {#getStyles--}
```
public final CdrStyle[] getStyles()
```


Adds the text box.

Value: The styles.

**Returns:**
com.aspose.imaging.fileformats.cdr.objects.CdrStyle[]
### setStyles(CdrStyle[] value) {#setStyles-com.aspose.imaging.fileformats.cdr.objects.CdrStyle---}
```
public final void setStyles(CdrStyle[] value)
```


Adds the text box.

Value: The styles.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [CdrStyle\[\]](../../com.aspose.imaging.fileformats.cdr.objects/cdrstyle) |  |

### getStyleId() {#getStyleId--}
```
public final int getStyleId()
```


Gets the style identifier.

Value: The style identifier.

**Returns:**
int - the style identifier.
### setStyleId(int value) {#setStyleId-int-}
```
public final void setStyleId(int value)
```


Sets the style identifier.

Value: The style identifier.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | the style identifier. |

