# OcrImageResult class

> Text found in one image, lines in reading order. OcrImageResult class, PdfNetStack.Ocr namespace.

Namespace: [PdfNetStack.Ocr](https://www.jadev-corp.com/api/pdfnetstack-ocr/)  
Assembly: PdfNetStack.Ocr.dll  
Package: `PdfNetStack.Ocr`

Text found in one image, lines in reading order.

```csharp
public sealed class OcrImageResult
```

**Inheritance**

[object](https://learn.microsoft.com/dotnet/api/system.object) ← 
[OcrImageResult](https://www.jadev-corp.com/api/pdfnetstack-ocr/ocrimageresult/)

## Constructors

### <a id="PdfNetStack_Ocr_OcrImageResult__ctor_System_Collections_Generic_IReadOnlyList_PdfNetStack_Ocr_OcrLine__"></a> OcrImageResult\(IReadOnlyList&lt;OcrLine\>\)

Wraps lines.

```csharp
public OcrImageResult(IReadOnlyList<OcrLine> lines)
```

#### Parameters

`lines` [IReadOnlyList](https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist\-1)<[OcrLine](https://www.jadev-corp.com/api/pdfnetstack-ocr/ocrline/)\>

The lines, in reading order.

## Properties

### <a id="PdfNetStack_Ocr_OcrImageResult_Lines"></a> Lines

The lines, top to bottom.

```csharp
public IReadOnlyList<OcrLine> Lines { get; }
```

#### Property Value

 [IReadOnlyList](https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist\-1)<[OcrLine](https://www.jadev-corp.com/api/pdfnetstack-ocr/ocrline/)\>

### <a id="PdfNetStack_Ocr_OcrImageResult_Text"></a> Text

All the text, lines joined with newlines.

```csharp
public string Text { get; }
```

#### Property Value

 [string](https://learn.microsoft.com/dotnet/api/system.string)

## Used in

- [Make scanned PDFs searchable with OCR in C#](https://www.jadev-corp.com/guides/ocr/)

Source: https://www.jadev-corp.com/pdfnetstack/api/pdfnetstack-ocr/ocrimageresult/
