ChoiceField Constructor (String, String, String, ChoiceFieldType)

Apitron PDF Kit help
Apitron.PDF.Kit library for .NET
Initializes a new instance of the ChoiceField class.

Namespace:  Apitron.PDF.Kit.Interactive.Forms
Assembly:  Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 2.0.37.0 (2.0.37.0)
Syntax

public ChoiceField(
	string fieldName,
	string toolTip,
	string[] choices,
	ChoiceFieldType choiceFieldType = ChoiceFieldType.ListBox
)

Parameters

fieldName
Type: SystemString
Name of the field.
toolTip
Type: SystemString
Name of the alternate field.
choices
Type: SystemString
The choices.
choiceFieldType (Optional)
Type: Apitron.PDF.Kit.Interactive.FormsChoiceFieldType
Type of the choice field.
Examples

C#
ChoiceField choice = new ChoiceField("Choice#1", "Combo box", "One", ChoiceFieldType.ListBox);
choice.IsMultiSelect = false;
choice.IsEditable = false;
choice.TextColor = new double[] { 0, 1, 0 };
ChoiceFieldView choiceFieldView = new ChoiceFieldView(choice, new Boundary(100, 500, 200, 510));

document.AcroForm.Fields.Add(choice);
page.Annotations.Add(choiceFieldView);
See Also

Reference