
## DataBarParameters class

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


Databar parameters.


## Constructors

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

## Methods

| Name | Static | Description |
| --- | --- | --- |
| [is2DCompositeComponent](#is2dcompositecomponent) | No | Enables flag of 2D composite component with DataBar barcode |
| [isAllowOnlyGS1Encoding](#isallowonlygs1encoding) | No | If this flag is set, it allows only GS1 encoding standard for Databar barcode types |
| [set2DCompositeComponent](#set2dcompositecomponent) | No | Enables flag of 2D composite component with DataBar barcode |
| [setAllowOnlyGS1Encoding](#setallowonlygs1encoding) | No | If this flag is set, it allows only GS1 encoding standard for Databar barcode types |

## Properties

| Name | Read/Write | Description |
| --- | --- | --- |
| [AspectRatio](#aspectratio) | Read/Write | Height/Width ratio of 2D BarCode module. Used for DataBar stacked. |
| [Columns](#columns) | Read/Write | Columns count. |
| [Rows](#rows) | Read/Write | Rows count. |

### DataBarParameters__construct(DataBarParametersDTO $dataBarParametersDto) {#constructor}

| Parameter | Type | Description |
| --- | --- | --- |
| `$dataBarParametersDto` | `DataBarParametersDTO` |  |

### is2DCompositeComponentis2DCompositeComponent() {#is2dcompositecomponent}

Enables flag of 2D composite component with DataBar barcode

### isAllowOnlyGS1EncodingisAllowOnlyGS1Encoding() {#isallowonlygs1encoding}

If this flag is set, it allows only GS1 encoding standard for Databar barcode types

### set2DCompositeComponentset2DCompositeComponent(bool $value) {#set2dcompositecomponent}

Enables flag of 2D composite component with DataBar barcode

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

### setAllowOnlyGS1EncodingsetAllowOnlyGS1Encoding(bool $value) {#setallowonlygs1encoding}

If this flag is set, it allows only GS1 encoding standard for Databar barcode types

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

### AspectRatio {#aspectratio}

**Access:** Read/Write

Height/Width ratio of 2D BarCode module. Used for DataBar stacked.

Height/Width ratio of 2D BarCode module. Used for DataBar stacked.

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

### Columns {#columns}

**Access:** Read/Write

Columns count.

Columns count.

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

### Rows {#rows}

**Access:** Read/Write

Rows count.

Rows count.

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

