
## CodetextParameters class

**Namespace:** `Aspose.Barcode.Generation`


Codetext parameters.


## Constructors

| Name | Description |
| --- | --- |
| [__construct](#constructor) |  |

## Properties

| Name | Read/Write | Description |
| --- | --- | --- |
| [Alignment](#alignment) | Read/Write | Gets the alignment of the code text. Default value: TextAlignment::CENTER. |
| [Color](#color) | Read/Write | Specify the displaying CodeText's Color. Default value BLACK. |
| [Font](#font) | Read/Write | Specify the displaying CodeText's font. Default value: Arial 5pt regular. Ignored if FontMode is set to FontMode::AUTO. |
| [FontMode](#fontmode) | Read/Write | Specify FontMode. If FontMode is set to Auto, font size will be calculated automatically based on xDimension value. It is recommended to use FontMode::AUTO especially in AutoSizeMode.NEAREST or AutoSizeMode::INTERPOLATION. Default value: FontMode::AUTO. |
| [Location](#location) | Read/Write | Specify the displaying CodeText Location, set to CodeLocation::NONE to hide CodeText. Default value: CodeLocation::BELOW. |
| [NoWrap](#nowrap) | Read/Write | Specify word wraps (line breaks) within text. |
| [Space](#space) | Read/Write | Space between the CodeText and the BarCode in Unit value. Default value: 2pt. Ignored for EAN8, EAN13, UPCE, UPCA, ISBN, ISMN, ISSN, UpcaGs1DatabarCoupon. |
| [TwoDDisplayText](#twoddisplaytext) | Read/Write | Text that will be displayed instead of codetext in 2D barcodes. Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode |

### CodetextParameters__construct(CodetextParametersDTO $codetextParametersDto) {#constructor}

| Parameter | Type | Description |
| --- | --- | --- |
| `$codetextParametersDto` | `CodetextParametersDTO` |  |

### Alignment {#alignment}

**Access:** Read/Write

Gets the alignment of the code text. Default value: TextAlignment::CENTER.

Sets the alignment of the code text. Default value: TextAlignment::CENTER.

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `int` |  |

### Color {#color}

**Access:** Read/Write

Specify the displaying CodeText's Color. Default value BLACK.

Specify the displaying CodeText's Color. Default value BLACK.

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `string` |  |

### Font {#font}

**Access:** Read/Write

Specify the displaying CodeText's font. Default value: Arial 5pt regular. Ignored if FontMode is set to FontMode::AUTO.

Specify the displaying CodeText's font. Default value: Arial 5pt regular. Ignored if FontMode is set to FontMode::AUTO.

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `FontUnit` |  |

### FontMode {#fontmode}

**Access:** Read/Write

Specify FontMode. If FontMode is set to Auto, font size will be calculated automatically based on xDimension value. It is recommended to use FontMode::AUTO especially in AutoSizeMode.NEAREST or AutoSizeMode::INTERPOLATION. Default value: FontMode::AUTO.

Specify FontMode. If FontMode is set to Auto, font size will be calculated automatically based on xDimension value. It is recommended to use FontMode::AUTO especially in AutoSizeMode.NEAREST or AutoSizeMode::INTERPOLATION. Default value: FontMode::AUTO.

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `int` |  |

### Location {#location}

**Access:** Read/Write

Specify the displaying CodeText Location, set to CodeLocation::NONE to hide CodeText. Default value: CodeLocation::BELOW.

Specify the displaying CodeText Location, set to CodeLocation::NONE to hide CodeText. Default value: CodeLocation::BELOW.

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `int` |  |

### NoWrap {#nowrap}

**Access:** Read/Write

**Returns:** bool

Specify word wraps (line breaks) within text.

Specify word wraps (line breaks) within text.

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `bool` |  |

### Space {#space}

**Access:** Read/Write

Space between the CodeText and the BarCode in Unit value. Default value: 2pt. Ignored for EAN8, EAN13, UPCE, UPCA, ISBN, ISMN, ISSN, UpcaGs1DatabarCoupon.

Space between the CodeText and the BarCode in Unit value. Default value: 2pt. Ignored for EAN8, EAN13, UPCE, UPCA, ISBN, ISMN, ISSN, UpcaGs1DatabarCoupon.

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `Unit` |  |

### TwoDDisplayText {#twoddisplaytext}

**Access:** Read/Write

Text that will be displayed instead of codetext in 2D barcodes. Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode

Text that will be displayed instead of codetext in 2D barcodes. Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `string` |  |

