Enum PdfXfaTextBoxType
Represents the text box type
Namespace: Syncfusion.Pdf.Xfa
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public enum PdfXfaTextBoxType
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()
Fields
Name | Description |
---|---|
Comb | Specifies comb of characters. |
Multiline | Specifies the multiline of text. |
Password | Specifies the password character. |
SingleLine | Specifies the single line of text. |