# PdfUnderstandingSemanticElement

Semantic classification of one ordered region.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

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

**Modifiers**

sealed

Semantic classification of one ordered region.

## Inheritance

- object
- PdfUnderstandingSemanticElement

## Usage

Explore 5 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 3

- Method [IPdfSemanticClassificationStage.Classify](/api/pdf/officeimo-pdf-ipdfsemanticclassificationstage/#method-classify-officeimo-pdf-pdfunderstandingpagecontext-collections-generic-ireadonlylist-officeimo-pdf-pdfunderstandingregion)
- Property [PdfUnderstandingImageRegion.Caption](/api/pdf/officeimo-pdf-pdfunderstandingimageregion/#property-caption)
- Property [PdfUnderstandingPageResult.Elements](/api/pdf/officeimo-pdf-pdfunderstandingpageresult/#property-elements)

### Accepted by parameters 2

- Method [IPdfImageRegionDetectionStage.Detect](/api/pdf/officeimo-pdf-ipdfimageregiondetectionstage/#method-detect-officeimo-pdf-pdfunderstandingpagecontext-collections-generic-ireadonlylist-officeimo-pdf-pdfunderstandingsemanticelement) parameter `semanticElements`
- Constructor [PdfUnderstandingImageRegion.PdfUnderstandingImageRegion](/api/pdf/officeimo-pdf-pdfunderstandingimageregion/#constructor-ctor-officeimo-pdf-pdfimageplacement-officeimo-pdf-pdfunderstandingsemanticelement-double-collections-generic-ienumerable-officeimo-pdf-pdfinferenceevidence-boolean-string) parameter `caption`

Filter members 

Show inherited

## Constructors

PdfUnderstandingSemanticElement 2 overloads

`public PdfUnderstandingSemanticElement(PdfUnderstandingRegion region, PdfUnderstandingSemanticKind kind, double confidence, IEnumerable<PdfInferenceEvidence>? evidence)` [#](#constructor-ctor-officeimo-pdf-pdfunderstandingregion-officeimo-pdf-pdfunderstandingsemantickind-double-collections-generic-ienumerable-officeimo-pdf-pdfinferenceevidence)

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

Creates a semantic classification for a region without an explicit hierarchy level.

Parameters

**region OfficeIMO.Pdf.PdfUnderstandingRegion required**

**kind OfficeIMO.Pdf.PdfUnderstandingSemanticKind required**

**confidence double required**

**evidence System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfInferenceEvidence>? required**

`public PdfUnderstandingSemanticElement(PdfUnderstandingRegion region, PdfUnderstandingSemanticKind kind, double confidence = 0.5, IEnumerable<PdfInferenceEvidence>? evidence = null, int? level = null)` [#](#constructor-ctor-officeimo-pdf-pdfunderstandingregion-officeimo-pdf-pdfunderstandingsemantickind-double-collections-generic-ienumerable-officeimo-pdf-pdfinferenceevidence-nullable-system-int32)

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

Creates a semantic classification for a region.

Parameters

**region OfficeIMO.Pdf.PdfUnderstandingRegion required**

**kind OfficeIMO.Pdf.PdfUnderstandingSemanticKind required**

**confidence double = 0.5 optional**

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

**level int? = 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 PdfUnderstandingRegion Region { get; }` [#](#property-region)

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

Classified region.

`public PdfUnderstandingSemanticKind Kind { get; }` [#](#property-kind)

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

Semantic kind selected by the active stage.

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

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

Normalized classification confidence from 0 to 1.

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

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

Evidence supporting the semantic classification.

`public int? Level { get; }` [#](#property-level)

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

Best-evidence hierarchy level for headings or list items, when known.

<!-- PowerForge markdown artifact sha256:79055F6D4376F0D72D7142807689E4CDF1FCDCD2C537FD1C79098BA51EA09741 -->
