# PdfFormFieldValue

Represents one or more values assigned to an AcroForm field.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

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

**Modifiers**

sealed

Represents one or more values assigned to an AcroForm field.

## Inheritance

- object
- PdfFormFieldValue

## Usage

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

- Method [PdfFormDataSet.ToFieldValues](/api/pdf/officeimo-pdf-pdfformdataset/#method-tofieldvalues)
- Method [PdfFormFieldValue.From](/api/pdf/officeimo-pdf-pdfformfieldvalue/#method-from-string)
- Method [PdfFormFieldValue.FromValues](/api/pdf/officeimo-pdf-pdfformfieldvalue/#method-fromvalues-string)
- Method [PdfFormFieldValue.op_Implicit](/api/pdf/officeimo-pdf-pdfformfieldvalue/#method-op-implicit-string)

### Accepted by parameters 4

- Method [PdfDocumentForms.AppendRevision](/api/pdf/officeimo-pdf-pdfdocumentforms/#method-appendrevision-collections-generic-ireadonlydictionary-system-string-officeimo-pdf-pdfformfieldvalue-boolean) parameter `fieldValues`
- Method [PdfDocumentForms.Fill](/api/pdf/officeimo-pdf-pdfdocumentforms/#method-fill-collections-generic-ireadonlydictionary-system-string-officeimo-pdf-pdfformfieldvalue) parameter `fieldValues`
- Method [PdfDocumentForms.FillAndFlatten](/api/pdf/officeimo-pdf-pdfdocumentforms/#method-fillandflatten-collections-generic-ireadonlydictionary-system-string-officeimo-pdf-pdfformfieldvalue) parameter `fieldValues`
- Method [PdfFormFieldValueAssessment.Assess](/api/pdf/officeimo-pdf-pdfformfieldvalueassessment/#method-assess-officeimo-pdf-pdfformfield-officeimo-pdf-pdfformfieldvalue) parameter `value`

Filter members 

Show inherited

## Methods

`public static PdfFormFieldValue From(string value)` [#](#method-from-string)

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

Creates a scalar field value. Use an empty string to clear a simple text value.

Parameters

**value string required**

Returns

`PdfFormFieldValue`

FromValues 2 overloads

`public static PdfFormFieldValue FromValues(params string[] values)` [#](#method-fromvalues-string)

[PdfFormFieldValue.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfFormFieldValue.cs#L35)

Creates a field value containing one or more entries, primarily for simple multi-select choice fields.

Parameters

**values string[] required**

Returns

`PdfFormFieldValue`

`public static PdfFormFieldValue FromValues(IEnumerable<string> values)` [#](#method-fromvalues-collections-generic-ienumerable-system-string)

[PdfFormFieldValue.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfFormFieldValue.cs#L43)

Creates a field value containing one or more entries, primarily for simple multi-select choice fields.

Parameters

**values System.Collections.Generic.IEnumerable<string> required**

Returns

`PdfFormFieldValue`

`public static PdfFormFieldValue op_Implicit(string value)` [#](#method-op-implicit-string)

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

Converts a string into a scalar form field value.

Parameters

**value string required**

Returns

`PdfFormFieldValue`

## 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<string> Values { get; }` [#](#property-values)

[PdfFormFieldValue.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfFormFieldValue.cs#L16)

Values to store in the form field. Multiple values are used for simple multi-select choice fields.

`public bool IsMultiple { get; }` [#](#property-ismultiple)

[PdfFormFieldValue.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfFormFieldValue.cs#L21)

True when the field value contains more than one item.

<!-- PowerForge markdown artifact sha256:83C5705B21E01D007DBE4177BCE3136C9090CF06CA3B2DDEC2B2FB3A82A27F83 -->
