---
layout: default-layout
title: CLocalizedTextLineElement - Dynamsoft Label Recognizer Classes
description: The class CLocalizedTextLineElement of Dynamsoft Label Recognizer represents a localized text line element.
keywords: Localized text line element
needGenerateH3Content: true
needAutoGenerateSidebar: true
noTitleIndex: true
breadcrumbText: CLocalizedTextLineElement
---

# CLocalizedTextLineElement

The `CLocalizedTextLineElement` class represents a localized text line element. It inherits from the `CRegionObjectElement` class.

## Definition

*Namespace:* dynamsoft::dlr::intermediate_results

*Assembly:* DynamsoftLabelRecognizer

```cpp
class CLocalizedTextLineElement : public CRegionObjectElement
```

*Inheritance:* [CRegionObjectElement]({{ site.dcvb_cpp_api }}core/intermediate-results/region-object-element.html) -> CLocalizedTextLineElement

## Methods

| Method               | Description |
|----------------------|-------------|
| [`GetCharacterQuadsCount`](#getcharacterquadscount) | Gets the number of character quads in the text line.|
| [`GetCharacterQuad`](#getcharacterquad) | Gets the quadrilateral of a specific character in the text line. |
| [`GetRowNumber`](#getrownumber) | Gets the row number of the text line. |
| **Methods Inherited from [CRegionObjectElement]({{ site.dcvb_cpp_api }}core/intermediate-results/region-object-element.html):** | |
| [`GetLocation`]({{ site.dcvb_cpp_api }}core/intermediate-results/region-object-element.html#getlocation) | Gets the location of the region object element. |
| [`GetReferencedElement`]({{ site.dcvb_cpp_api }}core/intermediate-results/region-object-element.html#getreferencedelement) | Gets a pointer to a referenced region object element. |
| [`GetElementType`]({{ site.dcvb_cpp_api }}core/intermediate-results/region-object-element.html#getelementtype) | Gets the type of the region object element. |
| [`GetImageData`]({{ site.dcvb_cpp_api }}core/intermediate-results/region-object-element.html#getimagedata) | Gets the imageData of the region object element. |
| [`Clone`]({{ site.dcvb_cpp_api }}core/intermediate-results/region-object-element.html#clone) | Clone the region object element. |
| [`Retain`]({{ site.dcvb_cpp_api }}core/intermediate-results/region-object-element.html#retain) | Increases the reference count of the `CRegionObjectElement` object. |
| [`Release`]({{ site.dcvb_cpp_api }}core/intermediate-results/region-object-element.html#release) | Decreases the reference count of the `CRegionObjectElement` object. |

### GetCharacterQuadsCount

Gets the number of character quads in the text line.

```cpp
int GetCharacterQuadsCount() const
```

**Return value**

Returns the number of character quads in the text line.

### GetCharacterQuad

Gets the quadrilateral of a specific character in the text line.

```cpp
int GetCharacterQuad(int index, CQuadrilateral* quad) const
```

**Parameters**

`[in] index` The index of the character.  
`[out] quad` The quadrilateral of the character.

**Return value**

Returns 0 if successful, otherwise returns a negative value.

### GetRowNumber

Gets the row number of the text line.

```cpp
int GetRowNumber() const
```

**Return value**

Returns the row number of the text line.
