# PdfLayerOptionsFluent

The fluent methods of PdfLayerOptions, generated from its public properties: A property-named method sets a property and a singular-named method adds…

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Modifiers**

static

The fluent methods of [PdfLayerOptions](/api/pdf/officeimo-pdf-pdflayeroptions/), generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

## Inheritance

- object
- PdfLayerOptionsFluent

Filter members 

Show inherited

## Methods

`public static PdfLayerOptions InitiallyVisible(PdfLayerOptions pdfLayerOptions, bool value = true)` [#](#method-initiallyvisible-officeimo-pdf-pdflayeroptions-boolean)

Sets [PdfLayerOptions.InitiallyVisible](/api/pdf/officeimo-pdf-pdflayeroptions/): Whether the layer is visible in the default configuration.

Parameters

**pdfLayerOptions OfficeIMO.Pdf.PdfLayerOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PdfLayerOptions` The same instance.

Examples

```csharp
// C# initializer or property                                              // C# fluent
new global::OfficeIMO.Pdf.PdfLayerOptions { InitiallyVisible = value };    pdfLayerOptions.InitiallyVisible(value);
```

`public static PdfLayerOptions Locked(PdfLayerOptions pdfLayerOptions, bool value = true)` [#](#method-locked-officeimo-pdf-pdflayeroptions-boolean)

Sets [PdfLayerOptions.Locked](/api/pdf/officeimo-pdf-pdflayeroptions/): Whether compatible viewers should prevent users from toggling the layer.

Parameters

**pdfLayerOptions OfficeIMO.Pdf.PdfLayerOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PdfLayerOptions` The same instance.

Examples

```csharp
// C# initializer or property                                    // C# fluent
new global::OfficeIMO.Pdf.PdfLayerOptions { Locked = value };    pdfLayerOptions.Locked(value);
```

`public static PdfLayerOptions VisibleInViewer(PdfLayerOptions pdfLayerOptions, bool value = true)` [#](#method-visibleinviewer-officeimo-pdf-pdflayeroptions-boolean)

Sets [PdfLayerOptions.VisibleInViewer](/api/pdf/officeimo-pdf-pdflayeroptions/): Whether the layer is intended to be visible on screen.

Parameters

**pdfLayerOptions OfficeIMO.Pdf.PdfLayerOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PdfLayerOptions` The same instance.

Examples

```csharp
// C# initializer or property                                             // C# fluent
new global::OfficeIMO.Pdf.PdfLayerOptions { VisibleInViewer = value };    pdfLayerOptions.VisibleInViewer(value);
```

`public static PdfLayerOptions VisibleWhenExporting(PdfLayerOptions pdfLayerOptions, bool value = true)` [#](#method-visiblewhenexporting-officeimo-pdf-pdflayeroptions-boolean)

Sets [PdfLayerOptions.VisibleWhenExporting](/api/pdf/officeimo-pdf-pdflayeroptions/): Whether the layer is intended to be visible when exported.

Parameters

**pdfLayerOptions OfficeIMO.Pdf.PdfLayerOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PdfLayerOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                  // C# fluent
new global::OfficeIMO.Pdf.PdfLayerOptions { VisibleWhenExporting = value };    pdfLayerOptions.VisibleWhenExporting(value);
```

`public static PdfLayerOptions VisibleWhenPrinting(PdfLayerOptions pdfLayerOptions, bool value = true)` [#](#method-visiblewhenprinting-officeimo-pdf-pdflayeroptions-boolean)

Sets [PdfLayerOptions.VisibleWhenPrinting](/api/pdf/officeimo-pdf-pdflayeroptions/): Whether the layer is intended to be visible when printed.

Parameters

**pdfLayerOptions OfficeIMO.Pdf.PdfLayerOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PdfLayerOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                 // C# fluent
new global::OfficeIMO.Pdf.PdfLayerOptions { VisibleWhenPrinting = value };    pdfLayerOptions.VisibleWhenPrinting(value);
```

## 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?`

<!-- PowerForge markdown artifact sha256:0BC8140D2B146A60C16E61ECCC92AE6FD064D41C7738525CE3A1E06B7BD850DA -->
