Table of Contents

Enum PdfXfaTextBoxType

Namespace
Syncfusion.Pdf.Xfa
Assembly
Syncfusion.Pdf.Portable.dll

Represents the text box type

public enum PdfXfaTextBoxType

Fields

Comb = 3

Specifies comb of characters.

Multiline = 1

Specifies the multiline of text.

Password = 2

Specifies the password character.

SingleLine = 0

Specifies the single line of text.

Examples

//Create a new PDF XFA document.
PdfXfaDocument document = new PdfXfaDocument();
//Add a new XFA page.
PdfXfaPage xfaPage = document.Pages.Add();
//Create a new PDF XFA form
PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width);
//Create a textbox field and add the properties.
PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("Address", new SizeF(200, 20));
//Set the caption text.
textBoxField.Caption.Text = "Address";
//Set the text box type.
textBoxField.Type = PdfXfaTextBoxType.Multiline;
//Set the tool tip.
textBoxField.ToolTip = "Address";
//Add the field to the XFA form.
mainForm.Fields.Add(textBoxField);
//Add the XFA form to the document.
document.XfaForm = mainForm;
//Save the document.
document.Save("XfaForm.pdf",PdfXfaType.Dynamic);
//close the document
document.Close();
'Create a new PDF XFA document.
Dim document As New PdfXfaDocument()
'Add a new XFA page.
Dim xfaPage As PdfXfaPage = document.Pages.Add()
'Create a new PDF XFA form
Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width)
'Create a textbox field and add the properties.
Dim textBoxField As New PdfXfaTextBoxField("Address", New SizeF(200,20))
'Set the caption text.
textBoxField.Caption.Text = "Address"
'Set the text box type.
textBoxField.Type = PdfXfaTextBoxType.Multiline
'Set the tool tip.
textBoxField.ToolTip = "Address"
'Add the field to the XFA form.
mainForm.Fields.Add(textBoxField)
'Add the XFA form to the document.
document.XfaForm = mainForm
'Save the document.
document.Save("XfaForm.pdf",PdfXfaType.Dynamic)
'close the document
document.Close()