ASP.NET MVC

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfLoadedXfaArea - ASP.NETMVC API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PdfLoadedXfaArea

    Represents the area type of the XFA form.

    Inheritance
    System.Object
    PdfXfaField
    PdfLoadedXfaField
    PdfLoadedXfaArea
    Inherited Members
    PdfXfaField.Name
    PdfXfaField.Margins
    PdfXfaField.Visibility
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Pdf.Xfa
    Assembly: Syncfusion.Pdf.Base.dll
    Syntax
    public class PdfLoadedXfaArea : PdfLoadedXfaField
    Examples
    //Load the existing PDF document
    PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("invoice.pdf");
    //Load the existing XFA form
    PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm;
    //Load the existing XFA area collection.
    PdfLoadedXfaArea area = (loadedForm.Fields["#subform[0]"] as PdfLoadedXfaForm).Fields["Header[0]"] as PdfLoadedXfaArea;
    //Get the loaded text box field.
    PdfLoadedXfaTextBoxField loadedTextBox = area.Fields["InvoiceNumber[0]"] as PdfLoadedXfaTextBoxField;
    //fill the text box
    loadedTextBox.Text = "12345";
    //Save the document
    loadedDocument.Save("output.pdf");
    //Close the document
    loadedDocument.Close();
    'Load the existing PDF document
    Dim loadedDocument As New PdfLoadedXfaDocument("invoice.pdf")
    'Load the existing XFA form
    Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm
    'Load the existing XFA area collection.
    Dim area As PdfLoadedXfaArea = TryCast(TryCast(loadedForm.Fields("#subform[0]"), PdfLoadedXfaForm).Fields("Header[0]"), PdfLoadedXfaArea)
    'Get the loaded text box field.
    Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast(area.Fields("InvoiceNumber[0]"), PdfLoadedXfaTextBoxField)
    'fill the text box
    loadedTextBox.Text = "12345"
    'Save the document
    loadedDocument.Save("output.pdf")
    'Close the document
    loadedDocument.Close()

    Properties

    Fields

    Represents loaded form fields collection.

    Declaration
    public PdfLoadedXfaFieldCollection Fields { get; }
    Property Value
    Type Description
    PdfLoadedXfaFieldCollection
    Examples
    //Load the existing PDF document
    PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("invoice.pdf");
    //Load the existing XFA form
    PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm;
    //Load the existing XFA area collection.
    PdfLoadedXfaArea area = (loadedForm.Fields["#subform[0]"] as PdfLoadedXfaForm).Fields["Header[0]"] as PdfLoadedXfaArea;
    //Get the loaded text box field.
    PdfLoadedXfaTextBoxField loadedTextBox = area.Fields["InvoiceNumber[0]"] as PdfLoadedXfaTextBoxField;
    //fill the text box
    loadedTextBox.Text = "12345";
    //Save the document
    loadedDocument.Save("output.pdf");
    //Close the document
    loadedDocument.Close();
    'Load the existing PDF document
    Dim loadedDocument As New PdfLoadedXfaDocument("invoice.pdf")
    'Load the existing XFA form
    Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm
    'Load the existing XFA area collection.
    Dim area As PdfLoadedXfaArea = TryCast(TryCast(loadedForm.Fields("#subform[0]"), PdfLoadedXfaForm).Fields("Header[0]"), PdfLoadedXfaArea)
    'Get the loaded text box field.
    Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast(area.Fields("InvoiceNumber[0]"), PdfLoadedXfaTextBoxField)
    'fill the text box
    loadedTextBox.Text = "12345"
    'Save the document
    loadedDocument.Save("output.pdf")
    'Close the document
    loadedDocument.Close()
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved