# PdfSemanticRole

Block-level semantic roles for generated tagged PDF content.

Enum 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfSemanticRole.cs:4](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Enums/PdfSemanticRole.cs#L4)

**Base**

`Enum`

**Implements**

`IComparable` `ISpanFormattable` `IFormattable` `IConvertible`

**Modifiers**

sealed

Block-level semantic roles for generated tagged PDF content.

## Inheritance

- Enum
- PdfSemanticRole

## Usage

Explore 10 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 8

- Field [PdfSemanticRole.Article](/api/pdf/officeimo-pdf-pdfsemanticrole/#field-article)
- Field [PdfSemanticRole.BlockQuote](/api/pdf/officeimo-pdf-pdfsemanticrole/#field-blockquote)
- Field [PdfSemanticRole.Caption](/api/pdf/officeimo-pdf-pdfsemanticrole/#field-caption)
- Field [PdfSemanticRole.Division](/api/pdf/officeimo-pdf-pdfsemanticrole/#field-division)
- Field [PdfSemanticRole.Figure](/api/pdf/officeimo-pdf-pdfsemanticrole/#field-figure)
- Field [PdfSemanticRole.Form](/api/pdf/officeimo-pdf-pdfsemanticrole/#field-form)
- Field [PdfSemanticRole.Part](/api/pdf/officeimo-pdf-pdfsemanticrole/#field-part)
- Field [PdfSemanticRole.Section](/api/pdf/officeimo-pdf-pdfsemanticrole/#field-section)

### Accepted by parameters 2

- Method [PdfContentBuilder.Semantic](/api/pdf/officeimo-pdf-pdfcontentbuilder/#method-semantic-officeimo-pdf-pdfsemanticrole-action-officeimo-pdf-pdfcontentbuilder-string) parameter `role`
- Method [PdfElementBuilder.Semantic](/api/pdf/officeimo-pdf-pdfelementbuilder/#method-semantic-officeimo-pdf-pdfsemanticrole-string) parameter `role`

Filter members 

Show inherited

## Inherited Methods

`public int CompareTo(object? target)` [#](#method-compareto-object)

Inherited from Enum

Parameters

**target object? required**

Returns

`int`

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

Inherited from Enum

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from Enum

Returns

`int`

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

Inherited from object

Returns

`Type`

`public TypeCode GetTypeCode()` [#](#method-gettypecode)

Inherited from Enum

Returns

`TypeCode`

`public bool HasFlag(Enum flag)` [#](#method-hasflag-enum)

Inherited from Enum

Parameters

**flag Enum required**

Returns

`bool`

ToString 4 overloads

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

Inherited from Enum

Returns

`string`

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

Inherited from Enum

Parameters

**format string? required**

Returns

`string`

`public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString() instead.")`

Parameters

**provider IFormatProvider? required**

Returns

`string`

`public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString(String) instead.")`

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

`string`

## Values

`public const PdfSemanticRole Part` [#](#field-part)

[PdfSemanticRole.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Enums/PdfSemanticRole.cs#L6)

A major document part.

Value: `0`

`public const PdfSemanticRole Article` [#](#field-article)

[PdfSemanticRole.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Enums/PdfSemanticRole.cs#L8)

A self-contained article.

Value: `1`

`public const PdfSemanticRole Section` [#](#field-section)

[PdfSemanticRole.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Enums/PdfSemanticRole.cs#L10)

A document section.

Value: `2`

`public const PdfSemanticRole Division` [#](#field-division)

[PdfSemanticRole.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Enums/PdfSemanticRole.cs#L12)

A generic structural division.

Value: `3`

`public const PdfSemanticRole BlockQuote` [#](#field-blockquote)

[PdfSemanticRole.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Enums/PdfSemanticRole.cs#L14)

A quotation containing one or more flow blocks.

Value: `4`

`public const PdfSemanticRole Caption` [#](#field-caption)

[PdfSemanticRole.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Enums/PdfSemanticRole.cs#L16)

A caption associated with nearby content.

Value: `5`

`public const PdfSemanticRole Figure` [#](#field-figure)

[PdfSemanticRole.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Enums/PdfSemanticRole.cs#L18)

A figure whose purpose is described by alternate text.

Value: `6`

`public const PdfSemanticRole Form` [#](#field-form)

[PdfSemanticRole.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Enums/PdfSemanticRole.cs#L20)

A form region containing one or more interactive fields.

Value: `7`

<!-- PowerForge markdown artifact sha256:80992584C6FB68D9F5AFBB262B2BEC6246398E6B850569B3D26099ED90F1837C -->
