# PdfViewerPreferencesOptionsFluent

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

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Modifiers**

static

The fluent methods of [PdfViewerPreferencesOptions](/api/pdf/officeimo-pdf-pdfviewerpreferencesoptions/), 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
- PdfViewerPreferencesOptionsFluent

Filter members 

Show inherited

## Methods

`public static PdfViewerPreferencesOptions CenterWindow(PdfViewerPreferencesOptions pdfViewerPreferencesOptions, bool? value = true)` [#](#method-centerwindow-officeimo-pdf-pdfviewerpreferencesoptions-nullable-system-boolean)

Sets [PdfViewerPreferencesOptions.CenterWindow](/api/pdf/officeimo-pdf-pdfviewerpreferencesoptions/): Requests that viewers center the document window on screen.

Parameters

**pdfViewerPreferencesOptions OfficeIMO.Pdf.PdfViewerPreferencesOptions required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`PdfViewerPreferencesOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                      // C# fluent
new global::OfficeIMO.Pdf.PdfViewerPreferencesOptions { CenterWindow = value };    pdfViewerPreferencesOptions.CenterWindow(value);
```

`public static PdfViewerPreferencesOptions Direction(PdfViewerPreferencesOptions pdfViewerPreferencesOptions, PdfViewerDirection? value)` [#](#method-direction-officeimo-pdf-pdfviewerpreferencesoptions-nullable-officeimo-pdf-pdfviewerdirection)

Sets [PdfViewerPreferencesOptions.Direction](/api/pdf/officeimo-pdf-pdfviewerpreferencesoptions/): Requests the viewer page progression direction.

Parameters

**pdfViewerPreferencesOptions OfficeIMO.Pdf.PdfViewerPreferencesOptions required**

The instance.

**value OfficeIMO.Pdf.PdfViewerDirection? required**

The value.

Returns

`PdfViewerPreferencesOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                   // C# fluent
new global::OfficeIMO.Pdf.PdfViewerPreferencesOptions { Direction = value };    pdfViewerPreferencesOptions.Direction(value);
```

`public static PdfViewerPreferencesOptions DisplayDocTitle(PdfViewerPreferencesOptions pdfViewerPreferencesOptions, bool? value = true)` [#](#method-displaydoctitle-officeimo-pdf-pdfviewerpreferencesoptions-nullable-system-boolean)

Sets [PdfViewerPreferencesOptions.DisplayDocTitle](/api/pdf/officeimo-pdf-pdfviewerpreferencesoptions/): Requests that viewers display the document title from metadata instead of the file name.

Parameters

**pdfViewerPreferencesOptions OfficeIMO.Pdf.PdfViewerPreferencesOptions required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`PdfViewerPreferencesOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                         // C# fluent
new global::OfficeIMO.Pdf.PdfViewerPreferencesOptions { DisplayDocTitle = value };    pdfViewerPreferencesOptions.DisplayDocTitle(value);
```

`public static PdfViewerPreferencesOptions Duplex(PdfViewerPreferencesOptions pdfViewerPreferencesOptions, PdfDuplexMode? value)` [#](#method-duplex-officeimo-pdf-pdfviewerpreferencesoptions-nullable-officeimo-pdf-pdfduplexmode)

Sets [PdfViewerPreferencesOptions.Duplex](/api/pdf/officeimo-pdf-pdfviewerpreferencesoptions/): Requests viewer duplex-printing behavior.

Parameters

**pdfViewerPreferencesOptions OfficeIMO.Pdf.PdfViewerPreferencesOptions required**

The instance.

**value OfficeIMO.Pdf.PdfDuplexMode? required**

The value.

Returns

`PdfViewerPreferencesOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Pdf.PdfViewerPreferencesOptions { Duplex = value };    pdfViewerPreferencesOptions.Duplex(value);
```

`public static PdfViewerPreferencesOptions FitWindow(PdfViewerPreferencesOptions pdfViewerPreferencesOptions, bool? value = true)` [#](#method-fitwindow-officeimo-pdf-pdfviewerpreferencesoptions-nullable-system-boolean)

Sets [PdfViewerPreferencesOptions.FitWindow](/api/pdf/officeimo-pdf-pdfviewerpreferencesoptions/): Requests that viewers resize the window to fit the first displayed page.

Parameters

**pdfViewerPreferencesOptions OfficeIMO.Pdf.PdfViewerPreferencesOptions required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`PdfViewerPreferencesOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                   // C# fluent
new global::OfficeIMO.Pdf.PdfViewerPreferencesOptions { FitWindow = value };    pdfViewerPreferencesOptions.FitWindow(value);
```

`public static PdfViewerPreferencesOptions HideMenubar(PdfViewerPreferencesOptions pdfViewerPreferencesOptions, bool? value = true)` [#](#method-hidemenubar-officeimo-pdf-pdfviewerpreferencesoptions-nullable-system-boolean)

Sets [PdfViewerPreferencesOptions.HideMenubar](/api/pdf/officeimo-pdf-pdfviewerpreferencesoptions/): Requests that viewers hide the menu bar when the document is opened.

Parameters

**pdfViewerPreferencesOptions OfficeIMO.Pdf.PdfViewerPreferencesOptions required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`PdfViewerPreferencesOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                     // C# fluent
new global::OfficeIMO.Pdf.PdfViewerPreferencesOptions { HideMenubar = value };    pdfViewerPreferencesOptions.HideMenubar(value);
```

`public static PdfViewerPreferencesOptions HideToolbar(PdfViewerPreferencesOptions pdfViewerPreferencesOptions, bool? value = true)` [#](#method-hidetoolbar-officeimo-pdf-pdfviewerpreferencesoptions-nullable-system-boolean)

Sets [PdfViewerPreferencesOptions.HideToolbar](/api/pdf/officeimo-pdf-pdfviewerpreferencesoptions/): Requests that viewers hide the toolbar when the document is opened.

Parameters

**pdfViewerPreferencesOptions OfficeIMO.Pdf.PdfViewerPreferencesOptions required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`PdfViewerPreferencesOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                     // C# fluent
new global::OfficeIMO.Pdf.PdfViewerPreferencesOptions { HideToolbar = value };    pdfViewerPreferencesOptions.HideToolbar(value);
```

`public static PdfViewerPreferencesOptions HideWindowUI(PdfViewerPreferencesOptions pdfViewerPreferencesOptions, bool? value = true)` [#](#method-hidewindowui-officeimo-pdf-pdfviewerpreferencesoptions-nullable-system-boolean)

Sets [PdfViewerPreferencesOptions.HideWindowUI](/api/pdf/officeimo-pdf-pdfviewerpreferencesoptions/): Requests that viewers hide user-interface elements when the document is opened.

Parameters

**pdfViewerPreferencesOptions OfficeIMO.Pdf.PdfViewerPreferencesOptions required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`PdfViewerPreferencesOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                      // C# fluent
new global::OfficeIMO.Pdf.PdfViewerPreferencesOptions { HideWindowUI = value };    pdfViewerPreferencesOptions.HideWindowUI(value);
```

`public static PdfViewerPreferencesOptions NonFullScreenPageMode(PdfViewerPreferencesOptions pdfViewerPreferencesOptions, PdfNonFullScreenPageMode? value)` [#](#method-nonfullscreenpagemode-officeimo-pdf-pdfviewerpreferencesoptions-nullable-officeimo-pdf-pdfnonfullscreenpagemode)

Sets [PdfViewerPreferencesOptions.NonFullScreenPageMode](/api/pdf/officeimo-pdf-pdfviewerpreferencesoptions/): Requests the page mode used when leaving full-screen display.

Parameters

**pdfViewerPreferencesOptions OfficeIMO.Pdf.PdfViewerPreferencesOptions required**

The instance.

**value OfficeIMO.Pdf.PdfNonFullScreenPageMode? required**

The value.

Returns

`PdfViewerPreferencesOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                               // C# fluent
new global::OfficeIMO.Pdf.PdfViewerPreferencesOptions { NonFullScreenPageMode = value };    pdfViewerPreferencesOptions.NonFullScreenPageMode(value);
```

`public static PdfViewerPreferencesOptions NumCopies(PdfViewerPreferencesOptions pdfViewerPreferencesOptions, int? value)` [#](#method-numcopies-officeimo-pdf-pdfviewerpreferencesoptions-nullable-system-int32)

Sets [PdfViewerPreferencesOptions.NumCopies](/api/pdf/officeimo-pdf-pdfviewerpreferencesoptions/): Requested number of copies used to initialize the viewer print dialog.

Parameters

**pdfViewerPreferencesOptions OfficeIMO.Pdf.PdfViewerPreferencesOptions required**

The instance.

**value int? required**

The value.

Returns

`PdfViewerPreferencesOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                   // C# fluent
new global::OfficeIMO.Pdf.PdfViewerPreferencesOptions { NumCopies = value };    pdfViewerPreferencesOptions.NumCopies(value);
```

`public static PdfViewerPreferencesOptions PickTrayByPdfSize(PdfViewerPreferencesOptions pdfViewerPreferencesOptions, bool? value = true)` [#](#method-picktraybypdfsize-officeimo-pdf-pdfviewerpreferencesoptions-nullable-system-boolean)

Sets [PdfViewerPreferencesOptions.PickTrayByPdfSize](/api/pdf/officeimo-pdf-pdfviewerpreferencesoptions/): Requests that viewers pick the printer tray based on each page's PDF size.

Parameters

**pdfViewerPreferencesOptions OfficeIMO.Pdf.PdfViewerPreferencesOptions required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`PdfViewerPreferencesOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                           // C# fluent
new global::OfficeIMO.Pdf.PdfViewerPreferencesOptions { PickTrayByPdfSize = value };    pdfViewerPreferencesOptions.PickTrayByPdfSize(value);
```

`public static PdfViewerPreferencesOptions PrintArea(PdfViewerPreferencesOptions pdfViewerPreferencesOptions, PdfPageBoundaryBox? value)` [#](#method-printarea-officeimo-pdf-pdfviewerpreferencesoptions-nullable-officeimo-pdf-pdfpageboundarybox)

Sets [PdfViewerPreferencesOptions.PrintArea](/api/pdf/officeimo-pdf-pdfviewerpreferencesoptions/): Requests the page boundary box used when printing pages.

Parameters

**pdfViewerPreferencesOptions OfficeIMO.Pdf.PdfViewerPreferencesOptions required**

The instance.

**value OfficeIMO.Pdf.PdfPageBoundaryBox? required**

The value.

Returns

`PdfViewerPreferencesOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                   // C# fluent
new global::OfficeIMO.Pdf.PdfViewerPreferencesOptions { PrintArea = value };    pdfViewerPreferencesOptions.PrintArea(value);
```

`public static PdfViewerPreferencesOptions PrintClip(PdfViewerPreferencesOptions pdfViewerPreferencesOptions, PdfPageBoundaryBox? value)` [#](#method-printclip-officeimo-pdf-pdfviewerpreferencesoptions-nullable-officeimo-pdf-pdfpageboundarybox)

Sets [PdfViewerPreferencesOptions.PrintClip](/api/pdf/officeimo-pdf-pdfviewerpreferencesoptions/): Requests the page boundary box used when clipping printed pages.

Parameters

**pdfViewerPreferencesOptions OfficeIMO.Pdf.PdfViewerPreferencesOptions required**

The instance.

**value OfficeIMO.Pdf.PdfPageBoundaryBox? required**

The value.

Returns

`PdfViewerPreferencesOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                   // C# fluent
new global::OfficeIMO.Pdf.PdfViewerPreferencesOptions { PrintClip = value };    pdfViewerPreferencesOptions.PrintClip(value);
```

`public static PdfViewerPreferencesOptions PrintScaling(PdfViewerPreferencesOptions pdfViewerPreferencesOptions, PdfPrintScaling? value)` [#](#method-printscaling-officeimo-pdf-pdfviewerpreferencesoptions-nullable-officeimo-pdf-pdfprintscaling)

Sets [PdfViewerPreferencesOptions.PrintScaling](/api/pdf/officeimo-pdf-pdfviewerpreferencesoptions/): Requests viewer print scaling behavior.

Parameters

**pdfViewerPreferencesOptions OfficeIMO.Pdf.PdfViewerPreferencesOptions required**

The instance.

**value OfficeIMO.Pdf.PdfPrintScaling? required**

The value.

Returns

`PdfViewerPreferencesOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                      // C# fluent
new global::OfficeIMO.Pdf.PdfViewerPreferencesOptions { PrintScaling = value };    pdfViewerPreferencesOptions.PrintScaling(value);
```

`public static PdfViewerPreferencesOptions ViewArea(PdfViewerPreferencesOptions pdfViewerPreferencesOptions, PdfPageBoundaryBox? value)` [#](#method-viewarea-officeimo-pdf-pdfviewerpreferencesoptions-nullable-officeimo-pdf-pdfpageboundarybox)

Sets [PdfViewerPreferencesOptions.ViewArea](/api/pdf/officeimo-pdf-pdfviewerpreferencesoptions/): Requests the page boundary box used when fitting pages in the viewer.

Parameters

**pdfViewerPreferencesOptions OfficeIMO.Pdf.PdfViewerPreferencesOptions required**

The instance.

**value OfficeIMO.Pdf.PdfPageBoundaryBox? required**

The value.

Returns

`PdfViewerPreferencesOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                  // C# fluent
new global::OfficeIMO.Pdf.PdfViewerPreferencesOptions { ViewArea = value };    pdfViewerPreferencesOptions.ViewArea(value);
```

`public static PdfViewerPreferencesOptions ViewClip(PdfViewerPreferencesOptions pdfViewerPreferencesOptions, PdfPageBoundaryBox? value)` [#](#method-viewclip-officeimo-pdf-pdfviewerpreferencesoptions-nullable-officeimo-pdf-pdfpageboundarybox)

Sets [PdfViewerPreferencesOptions.ViewClip](/api/pdf/officeimo-pdf-pdfviewerpreferencesoptions/): Requests the page boundary box used when clipping pages in the viewer.

Parameters

**pdfViewerPreferencesOptions OfficeIMO.Pdf.PdfViewerPreferencesOptions required**

The instance.

**value OfficeIMO.Pdf.PdfPageBoundaryBox? required**

The value.

Returns

`PdfViewerPreferencesOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                  // C# fluent
new global::OfficeIMO.Pdf.PdfViewerPreferencesOptions { ViewClip = value };    pdfViewerPreferencesOptions.ViewClip(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:53EFC21DFF23F8272892A0AC6AF58E8905DA99C0BCF2DE341B62F012C3326CAC -->
