# CandidateBarcodeZone Class

The `CandidateBarcodeZone` class represents a candidate zone for barcode detection.

## Definition

*Namespace:* Dynamsoft.DBR.intermediate_results


```csharp
class CandidateBarcodeZone
```

## Methods

| Method                            | Description |
|-----------------------------------|-------------|
| [`CandidateBarcodeZone`](#CandidateBarcodeZone-constructor)           | Constructs a CandidateBarcodeZone object with default parameters. |
| [`CandidateBarcodeZone(Quadrilateral location, ulong possibleFormats)`](#CandidateBarcodeZone-constructor)           | Constructs a CandidateBarcodeZone object with the specified parameters. |
| [`GetLocation`](#getlocation)           | Gets the location of the candidate barcode.|
| [`SetLocation`](#setlocation)           | Sets the location of the candidate barcode.|
| [`GetPossibleFormats`](#getpossibleformats)           | Gets the posssible formats of the candidate barcode. |
| [`SetPossibleFormats`](#setpossibleformats)           | Sets the posssible formats of the candidate barcode. |


### CandidateBarcodeZone Constructor

Constructs a CandidateBarcodeZone object with the specified parameters.

```csharp
CandidateBarcodeZone();
CandidateBarcodeZone(Quadrilateral location, ulong possibleFormats);
```

**Parameters**

`location` The location of the candidate barcode.

`possibleFormats` The posssible formats of the candidate barcode.

**See Also**

[EnumBarcodeFormat](https://www.dynamsoft.com/barcode-reader/docs/server/programming/dotnet/api-reference/enum-barcode-format.md)

### GetLocation

Gets the location of the candidate barcode.

```csharp
Quadrilateral GetLocation()
```

**Return value**

Returns the location of the candidate barcode.

**See Also**

[Quadrilateral](https://www.dynamsoft.com/capture-vision/docs/server/programming/dotnet/api-reference/core/basic-classes/quadrilateral.md)

### SetLocation

Sets the location of the candidate barcode.

```csharp
void SetLocation(Quadrilateral loc)
```

**Parameters**

`loc` The location of the candidate barcode. 

**See Also**

[Quadrilateral](https://www.dynamsoft.com/capture-vision/docs/server/programming/dotnet/api-reference/core/basic-classes/quadrilateral.md)

### GetPossibleFormats

Gets the posssible formats of the candidate barcode.

```csharp
ulong GetPossibleFormats()
```

**Return value**

Returns the posssible formats of the candidate barcode.

**See Also**

[EnumBarcodeFormat](https://www.dynamsoft.com/barcode-reader/docs/server/programming/dotnet/api-reference/enum-barcode-format.md)

### SetPossibleFormats

Sets the posssible formats of the candidate barcode.

```csharp
void SetPossibleFormats(ulong formats)
```

**Parameters**

`formats` The posssible formats of the candidate barcode.

**See Also**

[EnumBarcodeFormat](https://www.dynamsoft.com/barcode-reader/docs/server/programming/dotnet/api-reference/enum-barcode-format.md)