# TextZone

The `TextZone` class represents a single text zone.

## Definition

*Namespace:* Dynamsoft.Core.intermediate_results


```csharp
class TextZone
```

## Methods

| Method               | Description |
|----------------------|-------------|
| [`Constructors`](#constructors) | The constructors. |
| [`GetLocation`](#getlocation) | Gets the location of the text zone. |
| [`SetLocation`](#setlocation) | Sets the location of the text zone. |
| [`GetCharContoursIndices`](#getcharcontoursindices) | Gets the indices of the character contours. |
| [`SetCharContoursIndices`](#setcharcontoursindices) | Sets the indices of the character contours. |

### Constructors

The constructors.

```csharp
TextZone();
TextZone(Quadrilateral location);
TextZone(Quadrilateral location, int[] charContoursIndices);
```

**Parameters**

`[in] location` The location of the text zone.

`[in] charContoursIndices` The indices of the character contours.

### GetLocation

Gets the location of the text zone.

```csharp
Quadrilateral GetLocation()
```

**Return Value**

Returns the location of the text zone.

**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 text zone.

```csharp
void SetLocation(Quadrilateral location)
```

**Parameters**

`[in] location` The location of the text zone.

**See Also**

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

### GetCharContoursIndices

Gets the indices of the character contours.

```csharp
int[] GetCharContoursIndices()
```

### SetCharContoursIndices

Sets the indices of the character contours.

```csharp
void SetCharContoursIndices(int[] charContoursIndices)
```

**Parameters**

`[in] charContoursIndices` The indices of the character contours.
