# PdfOptionalContentProperties

Lightweight metadata for catalog /OCProperties optional-content/layer state.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfOptionalContentProperties.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfOptionalContentProperties.cs#L27)

**Modifiers**

sealed

Lightweight metadata for catalog /OCProperties optional-content/layer state.

## Inheritance

- object
- PdfOptionalContentProperties

## Usage

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

- Property [PdfDocument.OptionalContent](/api/pdf/officeimo-pdf-pdfdocument/#property-optionalcontent)
- Property [PdfDocumentInfo.OptionalContent](/api/pdf/officeimo-pdf-pdfdocumentinfo/#property-optionalcontent)
- Property [PdfDocumentReadResult.OptionalContent](/api/pdf/officeimo-pdf-pdfdocumentreadresult/#property-optionalcontent)

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 IReadOnlyList<PdfOptionalContentGroup> Groups { get; }` [#](#property-groups)

[PdfOptionalContentProperties.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfOptionalContentProperties.cs#L27)

Optional-content groups listed in catalog /OCProperties /OCGs.

`public int GroupCount { get; }` [#](#property-groupcount)

[PdfOptionalContentProperties.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfOptionalContentProperties.cs#L30)

Number of optional-content groups discovered.

`public bool HasGroups { get; }` [#](#property-hasgroups)

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

True when at least one optional-content group was discovered.

`public string? DefaultConfigurationName { get; }` [#](#property-defaultconfigurationname)

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

Default optional-content configuration /Name, when present.

`public string? DefaultConfigurationCreator { get; }` [#](#property-defaultconfigurationcreator)

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

Default optional-content configuration /Creator, when present.

`public string? BaseState { get; }` [#](#property-basestate)

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

Default optional-content configuration /BaseState, when present.

`public IReadOnlyList<int> OnGroupObjectNumbers { get; }` [#](#property-ongroupobjectnumbers)

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

Group object numbers listed in the default configuration /ON array.

`public IReadOnlyList<int> OffGroupObjectNumbers { get; }` [#](#property-offgroupobjectnumbers)

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

Group object numbers listed in the default configuration /OFF array.

`public IReadOnlyList<int> LockedGroupObjectNumbers { get; }` [#](#property-lockedgroupobjectnumbers)

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

Group object numbers listed in the default configuration /Locked array.

`public IReadOnlyList<int> OrderGroupObjectNumbers { get; }` [#](#property-ordergroupobjectnumbers)

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

Group object numbers found in the default configuration /Order array.

<!-- PowerForge markdown artifact sha256:D7AB10325866F3DA5EE34329A70237895B433394C9087B057BC88BE0FDF538ED -->
