# PdfLayerOptions

Controls viewer, print, export, and locking behavior for generated optional content.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

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

**Modifiers**

sealed

Controls viewer, print, export, and locking behavior for generated optional content.

## Inheritance

- object
- PdfLayerOptions

## Usage

Explore 1 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.

### Accepted by parameters 1

- Method [PdfContentBuilder.Layer](/api/pdf/officeimo-pdf-pdfcontentbuilder/#method-layer-string-action-officeimo-pdf-pdfcontentbuilder-officeimo-pdf-pdflayeroptions) parameter `options`

Filter members 

Show inherited

## Constructors

`public PdfLayerOptions()` [#](#constructor-ctor)

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

## 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 bool InitiallyVisible { get; set; }` [#](#property-initiallyvisible)

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

Whether the layer is visible in the default configuration.

`public bool Locked { get; set; }` [#](#property-locked)

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

Whether compatible viewers should prevent users from toggling the layer.

`public bool VisibleInViewer { get; set; }` [#](#property-visibleinviewer)

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

Whether the layer is intended to be visible on screen.

`public bool VisibleWhenPrinting { get; set; }` [#](#property-visiblewhenprinting)

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

Whether the layer is intended to be visible when printed.

`public bool VisibleWhenExporting { get; set; }` [#](#property-visiblewhenexporting)

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

Whether the layer is intended to be visible when exported.

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