Class ChoiceFormFieldBuilder
Builder for choice form field.
public class ChoiceFormFieldBuilder : TerminalFormFieldBuilder<ChoiceFormFieldBuilder>
- Inheritance
-
ChoiceFormFieldBuilder
- Inherited Members
Constructors
ChoiceFormFieldBuilder(PdfDocument, string)
Creates builder for PdfChoiceFormField creation.
public ChoiceFormFieldBuilder(PdfDocument document, string formFieldName)
Parameters
document
PdfDocumentdocument to be used for form field creation
formFieldName
stringname of the form field
Methods
CreateComboBox()
Creates combobox form field base on provided parameters.
public virtual PdfChoiceFormField CreateComboBox()
Returns
- PdfChoiceFormField
new PdfChoiceFormField instance
CreateList()
Creates list form field based on provided parameters.
public virtual PdfChoiceFormField CreateList()
Returns
- PdfChoiceFormField
new PdfChoiceFormField instance
GetOptions()
Gets options for choice form field.
public virtual PdfArray GetOptions()
Returns
GetThis()
protected override ChoiceFormFieldBuilder GetThis()
Returns
SetOptions(string[])
Sets options for choice form field.
public virtual ChoiceFormFieldBuilder SetOptions(string[] options)
Parameters
Returns
- ChoiceFormFieldBuilder
this builder
SetOptions(string[][])
Sets options for choice form field.
public virtual ChoiceFormFieldBuilder SetOptions(string[][] options)
Parameters
options
string[][]two-dimensional array of string options. Every inner array shall have two elements.
Returns
- ChoiceFormFieldBuilder
this builder
SetOptions(PdfArray)
Sets options for choice form field.
public virtual ChoiceFormFieldBuilder SetOptions(PdfArray options)
Parameters
Returns
- ChoiceFormFieldBuilder
this builder