# OcrLine class

> A line of text. OcrLine class, PdfNetStack.Ocr namespace.

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

A line of text.

```csharp
public sealed record OcrLine : IEquatable<OcrLine>
```

**Inheritance**

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

**Implements**

[IEquatable&lt;OcrLine\>](https://learn.microsoft.com/dotnet/api/system.iequatable\-1)

## Constructors

### <a id="PdfNetStack_Ocr_OcrLine__ctor_System_String_PdfNetStack_Drawing_PdfPoint___System_Double_System_Collections_Generic_IReadOnlyList_PdfNetStack_Ocr_OcrWord__System_Boolean_"></a> OcrLine\(string, PdfPoint\[\], double, IReadOnlyList&lt;OcrWord\>, bool\)

A line of text.

```csharp
public OcrLine(string Text, PdfPoint[] Quad, double Confidence, IReadOnlyList<OcrWord> Words, bool RightToLeft)
```

#### Parameters

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

The text in logical order.

`Quad` [PdfPoint](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfpoint/)\[\]

Corners as the text stands: top left, top right, bottom right, bottom left.

`Confidence` [double](https://learn.microsoft.com/dotnet/api/system.double)

Mean character confidence, 0 to 1.

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

The words, in logical order.

`RightToLeft` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

True when the line reads right to left.

## Properties

### <a id="PdfNetStack_Ocr_OcrLine_Confidence"></a> Confidence

Mean character confidence, 0 to 1.

```csharp
public double Confidence { get; init; }
```

#### Property Value

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

### <a id="PdfNetStack_Ocr_OcrLine_Quad"></a> Quad

Corners as the text stands: top left, top right, bottom right, bottom left.

```csharp
public PdfPoint[] Quad { get; init; }
```

#### Property Value

 [PdfPoint](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfpoint/)\[\]

### <a id="PdfNetStack_Ocr_OcrLine_RightToLeft"></a> RightToLeft

True when the line reads right to left.

```csharp
public bool RightToLeft { get; init; }
```

#### Property Value

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

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

The text in logical order.

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

#### Property Value

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

### <a id="PdfNetStack_Ocr_OcrLine_Words"></a> Words

The words, in logical order.

```csharp
public IReadOnlyList<OcrWord> Words { get; init; }
```

#### Property Value

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

## 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/ocrline/
