menu

Document Processing

PdfLoadedTextBoxItemCollection Class - C# PDF Library API Reference | Syncfusion

    Show / Hide Table of Contents

    PdfLoadedTextBoxItemCollection Class

    Represents collection of text box group items.

    Inheritance
    System.Object
    PdfCollection
    PdfLoadedTextBoxItemCollection
    Implements
    System.Collections.IEnumerable
    Inherited Members
    PdfCollection.Count
    PdfCollection.GetEnumerator()
    PdfCollection.List
    Namespace: Syncfusion.Pdf.Parsing
    Assembly: Syncfusion.Pdf.Base.dll
    Syntax
    public class PdfLoadedTextBoxItemCollection : PdfCollection, IEnumerable
    Examples
    //Load an existing document
    PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
    // Read the text box field item
    PdfLoadedTextBoxField textboxField = doc.Form.Fields[0] as PdfLoadedTextBoxField;
    // TextBox Item collection
    PdfLoadedTextBoxItemCollection textboxFieldCollection = textboxField.Items;
    textboxFieldCollection[0].Location = new PointF(10, 20);
    doc.Save("LoadedForm.pdf");
    doc.Close(true);
    'Load an existing document
    Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf")
    ' Read the text box field item
    Dim textboxField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField)
    ' TextBox Item collection
    Dim textboxFieldCollection As PdfLoadedTextBoxItemCollection = textboxField.Items
    textboxFieldCollection(0).Location = New PointF(10, 20)
    doc.Save("LoadedForm.pdf")
    doc.Close(True)

    Constructors

    PdfLoadedTextBoxItemCollection()

    Declaration
    public PdfLoadedTextBoxItemCollection()

    Properties

    Item[Int32]

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

    Declaration
    public PdfLoadedTexBoxItem this[int index] { get; }
    Parameters
    Type Name Description
    System.Int32 index
    Property Value
    Type
    PdfLoadedTexBoxItem
    Examples
    //Load an existing document
    PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
    // Read the text box field item
    PdfLoadedTextBoxField textboxField = doc.Form.Fields[0] as PdfLoadedTextBoxField;
    // Read the text box item collection
    PdfLoadedTextBoxItemCollection textboxFieldCollection = textboxField.Items;
    PdfLoadedTexBoxItem textboxItem = textboxFieldCollection[0];
    textboxItem.Location = new PointF(10, 20);
    doc.Save("Form.pdf");
    doc.Close(true);
    'Load an existing document
    Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf")
    ' Read the text box field item
    Dim textboxField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField)
    ' Read the text box item collection
    Dim textboxFieldCollection As PdfLoadedTextBoxItemCollection = textboxField.Items
    Dim textboxItem As PdfLoadedTexBoxItem = textboxFieldCollection(0)
    textboxItem.Location = New PointF(10, 20)
    doc.Save("Form.pdf")
    doc.Close(True)
    See Also
    PdfLoadedDocument
    PdfLoadedTextBoxField
    PdfLoadedTextBoxItemCollection

    Implements

    System.Collections.IEnumerable

    See Also

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