# PdfPortfolioOptions

Configures the collection dictionary used to present generated embedded files as a portfolio.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfPortfolioOptions.cs:5](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfPortfolioOptions.cs#L5)

**Modifiers**

sealed

Configures the collection dictionary used to present generated embedded files as a portfolio.

## Inheritance

- object
- PdfPortfolioOptions

## Usage

Explore 5 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 4

- Property [PdfCreateOptions.Portfolio](/api/pdf/officeimo-pdf-pdfcreateoptions/#property-portfolio)
- Method [PdfPortfolioOptions.ClearFields](/api/pdf/officeimo-pdf-pdfportfoliooptions/#method-clearfields)
- Method [PdfPortfolioOptions.RemoveField](/api/pdf/officeimo-pdf-pdfportfoliooptions/#method-removefield-officeimo-pdf-pdfportfoliofieldkind)
- Method [PdfPortfolioOptions.SetField](/api/pdf/officeimo-pdf-pdfportfoliooptions/#method-setfield-officeimo-pdf-pdfportfoliofield)

### Accepted by parameters 1

- Method [PdfCreateOptions.SetPortfolio](/api/pdf/officeimo-pdf-pdfcreateoptions/#method-setportfolio-officeimo-pdf-pdfportfoliooptions) parameter `portfolio`

Filter members 

Show inherited

## Constructors

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

[PdfPortfolioOptions.cs:5](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfPortfolioOptions.cs#L5)

Creates portfolio options with a visible file-name field.

## Methods

`public PdfPortfolioOptions ClearFields()` [#](#method-clearfields)

[PdfPortfolioOptions.cs:62](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfPortfolioOptions.cs#L62)

Removes every portfolio field.

Returns

`PdfPortfolioOptions`

`public PdfPortfolioOptions RemoveField(PdfPortfolioFieldKind kind)` [#](#method-removefield-officeimo-pdf-pdfportfoliofieldkind)

[PdfPortfolioOptions.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfPortfolioOptions.cs#L55)

Removes a standard portfolio field.

Parameters

**kind OfficeIMO.Pdf.PdfPortfolioFieldKind required**

Returns

`PdfPortfolioOptions`

`public PdfPortfolioOptions SetField(PdfPortfolioField field)` [#](#method-setfield-officeimo-pdf-pdfportfoliofield)

[PdfPortfolioOptions.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfPortfolioOptions.cs#L47)

Adds or replaces a standard portfolio field.

Parameters

**field OfficeIMO.Pdf.PdfPortfolioField required**

Returns

`PdfPortfolioOptions`

## 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 PdfPortfolioView View { get; set; }` [#](#property-view)

[PdfPortfolioOptions.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfPortfolioOptions.cs#L15)

Initial viewer presentation.

`public string? InitialDocumentFileName { get; set; }` [#](#property-initialdocumentfilename)

[PdfPortfolioOptions.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfPortfolioOptions.cs#L19)

Optional embedded file to open initially. The name must match a generated embedded file.

`public PdfPortfolioFieldKind? SortBy { get; set; }` [#](#property-sortby)

[PdfPortfolioOptions.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfPortfolioOptions.cs#L28)

Optional standard property used to sort portfolio entries.

`public bool SortAscending { get; set; }` [#](#property-sortascending)

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

Whether the configured sort is ascending.

`public IReadOnlyList<PdfPortfolioField> Fields { get; }` [#](#property-fields)

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

Configured portfolio fields in display order.

<!-- PowerForge markdown artifact sha256:8A8C59AD586DC8864C384DF27A565941703E562FFA0776575AD0D7F5C6456C13 -->
