# QREncodeParams Class

> Used to control how the QR code is created.

- Product: Adobe PDF Library 21
- Language: .NET Framework
- Version: APDFL21.0.0PlusP1e
- HTML page: https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/QREncodeParams
- Version index: https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/llms.txt

```csharp
class QREncodeParams : SystemIDisposable
```

**Namespace:** `Datalogics::PDFL`

**Inherits from:** `SystemIDisposable`

## Description

Used to control how the QR code is created.

**Referenced by:** [`Page`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Page.md)

**Uses types:** [`QRColor`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/QRColor.md), [`QRErrorCorrectionLevel`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/enum/QRErrorCorrectionLevel.md)

## Constructors

### QREncodeParams

```csharp
Datalogics.PDFL.QREncodeParams.QREncodeParams(string text, double x, double y, double width, double height, QRErrorCorrectionLevel errorLevel, uint quietZoneSize, QRColor codeColor, QRColor backgroundColor)
```

*constructor*

**Parameters**

- `text` (`string`): The text string to encode in the QR code.
- `x` (`double`): The X coordinate of the lower-left corner of the QR code on the page, in user space units.
- `y` (`double`): The Y coordinate of the lower-left corner of the QR code on the page, in user space units.
- `width` (`double`): The width of the QR code, in user space units.
- `height` (`double`): The height of the QR code, in user space units.
- `errorLevel` ([`QRErrorCorrectionLevel`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/enum/QRErrorCorrectionLevel.md)): The error correction level for the QR code.
- `quietZoneSize` (`uint`): The size of the quiet zone (margin) around the QR code, in modules.
- `codeColor` ([`QRColor`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/QRColor.md)): The color of the QR code modules (the dark elements).
- `backgroundColor` ([`QRColor`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/QRColor.md)): The color of the background behind the QR code modules.

Create a new QREncodeParams object using the specified values.

## Properties

### BackgroundColor

```csharp
QRColor Datalogics.PDFL.QREncodeParams.BackgroundColor { get; set; }
```

Get the color of the background behind the QR code modules.

### CodeColor

```csharp
QRColor Datalogics.PDFL.QREncodeParams.CodeColor { get; set; }
```

Get the color of the QR code modules (the dark elements).

### ErrorCorrectionLevel

```csharp
QRErrorCorrectionLevel Datalogics.PDFL.QREncodeParams.ErrorCorrectionLevel { get; set; }
```

Get the error correction level of the QR code.

### Height

```csharp
double Datalogics.PDFL.QREncodeParams.Height { get; set; }
```

Get the height of the QR code, in user space units.

### QuietZoneSize

```csharp
uint Datalogics.PDFL.QREncodeParams.QuietZoneSize { get; set; }
```

Get the quiet zone size (margin around the QR code), in modules.

### TextToEncode

```csharp
string Datalogics.PDFL.QREncodeParams.TextToEncode { get; set; }
```

Get the text string to be encoded in the QR code.

### Width

```csharp
double Datalogics.PDFL.QREncodeParams.Width { get; set; }
```

Get the width of the QR code, in user space units.

### X

```csharp
double Datalogics.PDFL.QREncodeParams.X { get; set; }
```

Get the X coordinate of the lower-left corner of the QR code on the page, in user space units.

### Y

```csharp
double Datalogics.PDFL.QREncodeParams.Y { get; set; }
```

Get the Y coordinate of the lower-left corner of the QR code on the page, in user space units.

## Methods

### Dispose

```csharp
void Datalogics.PDFL.QREncodeParams.Dispose()
```

**Returns:** `void`
