# PdfUnderstandingRegion

One page-segmentation region containing related lines.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfUnderstandingContracts.cs:236](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L236)

**Modifiers**

sealed

One page-segmentation region containing related lines.

## Inheritance

- object
- PdfUnderstandingRegion

## Remarks

Native page coordinates use default user-space units: one unit is /UserUnit physical points (1/72 inch each), defaulting to 1. Local text/font and matrix values retain their native coordinate spaces. Explicit visual projections use their documented coordinates.

## Usage

Explore 9 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 6

- Method [IPdfPageSegmentationStage.Segment](/api/pdf/officeimo-pdf-ipdfpagesegmentationstage/#method-segment-officeimo-pdf-pdfunderstandingpagecontext-collections-generic-ireadonlylist-officeimo-pdf-pdfunderstandingline)
- Method [IPdfReadingOrderStage.Order](/api/pdf/officeimo-pdf-ipdfreadingorderstage/#method-order-officeimo-pdf-pdfunderstandingpagecontext-collections-generic-ireadonlylist-officeimo-pdf-pdfunderstandingregion)
- Property [PdfReadingOrderEvidence.Region](/api/pdf/officeimo-pdf-pdfreadingorderevidence/#property-region)
- Property [PdfUnderstandingPageResult.ReadingOrder](/api/pdf/officeimo-pdf-pdfunderstandingpageresult/#property-readingorder)
- Property [PdfUnderstandingPageResult.Regions](/api/pdf/officeimo-pdf-pdfunderstandingpageresult/#property-regions)
- Property [PdfUnderstandingSemanticElement.Region](/api/pdf/officeimo-pdf-pdfunderstandingsemanticelement/#property-region)

### Accepted by parameters 3

- Method [IPdfReadingOrderStage.Order](/api/pdf/officeimo-pdf-ipdfreadingorderstage/#method-order-officeimo-pdf-pdfunderstandingpagecontext-collections-generic-ireadonlylist-officeimo-pdf-pdfunderstandingregion) parameter `regions`
- Method [IPdfSemanticClassificationStage.Classify](/api/pdf/officeimo-pdf-ipdfsemanticclassificationstage/#method-classify-officeimo-pdf-pdfunderstandingpagecontext-collections-generic-ireadonlylist-officeimo-pdf-pdfunderstandingregion) parameter `orderedRegions`
- Constructor [PdfUnderstandingSemanticElement.PdfUnderstandingSemanticElement](/api/pdf/officeimo-pdf-pdfunderstandingsemanticelement/#constructor-ctor-officeimo-pdf-pdfunderstandingregion-officeimo-pdf-pdfunderstandingsemantickind-double-collections-generic-ienumerable-officeimo-pdf-pdfinferenceevidence) parameter `region`

Filter members 

Show inherited

## Constructors

`public PdfUnderstandingRegion(IReadOnlyList<PdfUnderstandingLine> lines, double? confidence = null, IEnumerable<PdfInferenceEvidence>? evidence = null)` [#](#constructor-ctor-collections-generic-ireadonlylist-officeimo-pdf-pdfunderstandingline-nullable-system-double-collections-generic-ienumerable-officeimo-pdf-pdfinferenceevidence)

[PdfUnderstandingContracts.cs:236](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L236)

Creates a segmented region from lines in local reading order.

Parameters

**lines System.Collections.Generic.IReadOnlyList<OfficeIMO.Pdf.PdfUnderstandingLine> required**

**confidence double? = null optional**

**evidence System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfInferenceEvidence>? = null optional**

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public IReadOnlyList<PdfUnderstandingLine> Lines { get; }` [#](#property-lines)

[PdfUnderstandingContracts.cs:257](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L257)

Lines in local region order.

`public string Text { get; }` [#](#property-text)

[PdfUnderstandingContracts.cs:259](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L259)

Normalized region text.

`public double XStart { get; }` [#](#property-xstart)

[PdfUnderstandingContracts.cs:261](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L261)

Left bound.

`public double XEnd { get; }` [#](#property-xend)

[PdfUnderstandingContracts.cs:263](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L263)

Right bound.

`public double YTop { get; }` [#](#property-ytop)

[PdfUnderstandingContracts.cs:265](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L265)

Top baseline.

`public double YBottom { get; }` [#](#property-ybottom)

[PdfUnderstandingContracts.cs:267](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L267)

Bottom baseline.

`public double Confidence { get; }` [#](#property-confidence)

[PdfUnderstandingContracts.cs:269](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L269)

Normalized segmentation confidence from 0 to 1.

`public IReadOnlyList<PdfInferenceEvidence> Evidence { get; }` [#](#property-evidence)

[PdfUnderstandingContracts.cs:271](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingContracts.cs#L271)

Evidence supporting this region segmentation.

<!-- PowerForge markdown artifact sha256:5CBDF770F46EBF7C868C37739E7C5A5CDBCCCDE0252E5583C3751D80A1388A9E -->
