menu

ASP.NET Web Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfLoadedButtonItemCollection

    Show / Hide Table of Contents

    Class PdfLoadedButtonItemCollection

    Represents collection of button item.

    Inheritance
    System.Object
    PdfCollection
    PdfLoadedButtonItemCollection
    Implements
    System.Collections.IEnumerable
    Inherited Members
    PdfCollection.GetEnumerator()
    PdfCollection.Count
    PdfCollection.List
    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.Parsing
    Assembly: Syncfusion.Pdf.Base.dll
    Syntax
    public class PdfLoadedButtonItemCollection : PdfCollection, IEnumerable
    Examples
     //Load an existing document.
     PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
     // Load the form
     PdfLoadedForm form = doc.Form;
     // Load an existing button field
     PdfLoadedButtonField buttonField = doc.Form.Fields["Submit"] as PdfLoadedButtonField;
     // Load an existing button collection
     PdfLoadedButtonItemCollection buttonCollection = buttonField.Items;
     // Load an existing button button item
     PdfLoadedButtonItem buttonItem = buttonCollection[0];
     buttonItem.Bounds = new RectangleF(0, 0, 20, 30);          
     doc.Save("Form.pdf");
     doc.Close(true);
     'Load an existing document.
     Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf")
     ' Load the form
     Dim form As PdfLoadedForm = doc.Form
     ' Load an existing button field
     Dim buttonField As PdfLoadedButtonField = TryCast(doc.Form.Fields("Submit"), PdfLoadedButtonField)
     ' Load an existing button collection
     Dim buttonCollection As PdfLoadedButtonItemCollection = buttonField.Items
     ' Load an existing button button item
     Dim buttonItem As PdfLoadedButtonItem = buttonCollection(0)
     buttonItem.Bounds = New RectangleF(0, 0, 20, 30)
     doc.Save("Form.pdf")
     doc.Close(True)

    Constructors

    PdfLoadedButtonItemCollection()

    Declaration
    public PdfLoadedButtonItemCollection()

    Properties

    Item[Int32]

    Gets the PdfLoadedButtonItem at the specified index.[Read-Only]

    Declaration
    public PdfLoadedButtonItem this[int index] { get; }
    Parameters
    Type Name Description
    System.Int32 index
    Property Value
    Type Description
    PdfLoadedButtonItem
    Examples
     //Load an existing document.
     PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
     // Load the form
     PdfLoadedForm form = doc.Form;
     // Load an existing button field
     PdfLoadedButtonField buttonField = doc.Form.Fields["Submit"] as PdfLoadedButtonField;
     // Load an existing button collection
     PdfLoadedButtonItemCollection buttonCollection = buttonField.Items;
     // Load an existing button button item
     PdfLoadedButtonItem buttonItem = buttonCollection[0];
     buttonItem.Bounds = new RectangleF(0, 0, 20, 30);          
     doc.Save("Form.pdf");
     doc.Close(true);
     'Load an existing document.
     Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf")
     ' Load the form
     Dim form As PdfLoadedForm = doc.Form
     ' Load an existing button field
     Dim buttonField As PdfLoadedButtonField = TryCast(doc.Form.Fields("Submit"), PdfLoadedButtonField)
     ' Load an existing button collection
     Dim buttonCollection As PdfLoadedButtonItemCollection = buttonField.Items
     ' Load an existing button button item
     Dim buttonItem As PdfLoadedButtonItem = buttonCollection(0)
     buttonItem.Bounds = New RectangleF(0, 0, 20, 30)
     doc.Save("Form.pdf")
     doc.Close(True)
    See Also
    PdfLoadedDocument
    PdfLoadedButtonField

    Implements

    System.Collections.IEnumerable

    See Also

    PdfLoadedDocument
    PdfLoadedButtonField
    PdfCollection
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved