# PdfOptionalContentGroup

Lightweight metadata for a PDF optional-content group/layer.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfOptionalContentGroup.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfOptionalContentGroup.cs#L33)

**Modifiers**

sealed

Lightweight metadata for a PDF optional-content group/layer.

## Inheritance

- object
- PdfOptionalContentGroup

## Usage

Explore 6 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 [PdfDocumentInfo.GetOptionalContentGroupsByName](/api/pdf/officeimo-pdf-pdfdocumentinfo/#method-getoptionalcontentgroupsbyname-string)
- Property [PdfDocumentInfo.OptionalContentGroups](/api/pdf/officeimo-pdf-pdfdocumentinfo/#property-optionalcontentgroups)
- Property [PdfDocumentInfo.OptionalContentGroupsByName](/api/pdf/officeimo-pdf-pdfdocumentinfo/#property-optionalcontentgroupsbyname)
- Method [PdfDocumentReadResult.GetOptionalContentGroupsByName](/api/pdf/officeimo-pdf-pdfdocumentreadresult/#method-getoptionalcontentgroupsbyname-string)
- Property [PdfDocumentReadResult.OptionalContentGroups](/api/pdf/officeimo-pdf-pdfdocumentreadresult/#property-optionalcontentgroups)
- Property [PdfOptionalContentProperties.Groups](/api/pdf/officeimo-pdf-pdfoptionalcontentproperties/#property-groups)

Filter members 

Show inherited

## 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 int? ObjectNumber { get; }` [#](#property-objectnumber)

[PdfOptionalContentGroup.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfOptionalContentGroup.cs#L33)

Optional-content group object number when the group is indirect.

`public string Name { get; }` [#](#property-name)

[PdfOptionalContentGroup.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfOptionalContentGroup.cs#L36)

Layer display name from the OCG /Name entry.

`public IReadOnlyList<string> Intents { get; }` [#](#property-intents)

[PdfOptionalContentGroup.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfOptionalContentGroup.cs#L39)

OCG intent names from /Intent.

`public bool? IsInitiallyVisible { get; }` [#](#property-isinitiallyvisible)

[PdfOptionalContentGroup.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfOptionalContentGroup.cs#L42)

Initial visibility inferred from the default optional-content configuration.

`public bool IsLocked { get; }` [#](#property-islocked)

[PdfOptionalContentGroup.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfOptionalContentGroup.cs#L45)

True when the group appears in the default configuration /Locked list.

`public bool IsInDefaultOrder { get; }` [#](#property-isindefaultorder)

[PdfOptionalContentGroup.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfOptionalContentGroup.cs#L48)

True when the group appears in the default configuration /Order list.

`public string? ViewState { get; }` [#](#property-viewstate)

[PdfOptionalContentGroup.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfOptionalContentGroup.cs#L51)

Usage /View /ViewState value, when present.

`public string? PrintState { get; }` [#](#property-printstate)

[PdfOptionalContentGroup.cs:54](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfOptionalContentGroup.cs#L54)

Usage /Print /PrintState value, when present.

`public string? ExportState { get; }` [#](#property-exportstate)

[PdfOptionalContentGroup.cs:57](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfOptionalContentGroup.cs#L57)

Usage /Export /ExportState value, when present.

`public string? UsageCreator { get; }` [#](#property-usagecreator)

[PdfOptionalContentGroup.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfOptionalContentGroup.cs#L60)

Usage /CreatorInfo /Creator value, when present.

`public string? UsageSubtype { get; }` [#](#property-usagesubtype)

[PdfOptionalContentGroup.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfOptionalContentGroup.cs#L63)

Usage /CreatorInfo /Subtype value, when present.

<!-- PowerForge markdown artifact sha256:9375354C55C5D72241B2AB7CE2EE92078A0DB3D071352FC0D16293F9550D260D -->
