Table of Contents

Class AcroChoiceOption

Namespace
UglyToad.PdfPig.AcroForms.Fields
Assembly
UglyToad.PdfPig.dll

An option in a choice field, either AcroComboBoxField or AcroListBoxField.

public class AcroChoiceOption
Inheritance
AcroChoiceOption
Inherited Members

Constructors

AcroChoiceOption(int, bool, string, string)

Create a new AcroChoiceOption.

public AcroChoiceOption(int index, bool isSelected, string name, string exportValue = null)

Parameters

index int
isSelected bool
name string
exportValue string

Properties

ExportValue

The value of the option when the form is exported.

public string ExportValue { get; }

Property Value

string

HasExportValue

Whether the field defined an export value for this option.

public bool HasExportValue { get; }

Property Value

bool

Index

The index of this option in the array.

public int Index { get; }

Property Value

int

IsSelected

Whether this option is selected.

public bool IsSelected { get; }

Property Value

bool

Name

The text of the option.

public string Name { get; }

Property Value

string

Methods

ToString()

public override string ToString()

Returns

string