Class PdfXfaTextBoxType
Represents the text box type
Inheritance
System.Object
PdfXfaTextBoxType
Namespace: Syncfusion.Pdf.Xfa
Assembly: Syncfusion.Pdf.NET.dll
Syntax
public sealed class PdfXfaTextBoxType : Enum
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
Comb
Specifies comb of characters.
Declaration
public const PdfXfaTextBoxType Comb
Field Value
Type |
---|
PdfXfaTextBoxType |
Multiline
Specifies the multiline of text.
Declaration
public const PdfXfaTextBoxType Multiline
Field Value
Type |
---|
PdfXfaTextBoxType |
Password
Specifies the password character.
Declaration
public const PdfXfaTextBoxType Password
Field Value
Type |
---|
PdfXfaTextBoxType |
SingleLine
Specifies the single line of text.
Declaration
public const PdfXfaTextBoxType SingleLine
Field Value
Type |
---|
PdfXfaTextBoxType |