Class PdfXfaNumericType
Represents the Pdf XFA numeric field types
Inheritance
System.Object
PdfXfaNumericType
Namespace: Syncfusion.Pdf.Xfa
Assembly: Syncfusion.Pdf.Portable.dll
Syntax
public sealed class PdfXfaNumericType : 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 numeric field and add the properties.
PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20));
//Set the caption text.
numericField.Caption.Text = "Numeric Field";
//Set field type.
numericField.FieldType = PdfXfaNumericType.Integer;
//Add the field to the XFA form.
mainForm.Fields.Add(numericField);
//Add the XFA form to the document.
document.XfaForm = mainForm;
//Save the document.
document.Save("output.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 numeric field and add the properties.
Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20))
'Set the caption text.
numericField.Caption.Text = "Numeric Field"
'Set field type.
numericField.FieldType = PdfXfaNumericType.Integer
'Add the field to the XFA form.
mainForm.Fields.Add(numericField)
'Add the XFA form to the document.
document.XfaForm = mainForm
'Save the document.
document.Save("output.pdf",PdfXfaType.Dynamic)
'close the document
document.Close()
Fields
Currency
Represents the currency values
Declaration
public const PdfXfaNumericType Currency
Field Value
Type |
---|
PdfXfaNumericType |
Decimal
Represents the decimal values
Declaration
public const PdfXfaNumericType Decimal
Field Value
Type |
---|
PdfXfaNumericType |
Float
Represents the floating values
Declaration
public const PdfXfaNumericType Float
Field Value
Type |
---|
PdfXfaNumericType |
Integer
Represents the integer values
Declaration
public const PdfXfaNumericType Integer
Field Value
Type |
---|
PdfXfaNumericType |
Percent
Represents the persentage values
Declaration
public const PdfXfaNumericType Percent
Field Value
Type |
---|
PdfXfaNumericType |