WinForms

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

    Show / Hide Table of Contents

    Class PdfLoadedTextBoxItemCollection

    Represents collection of text box group items.

    Inheritance
    System.Object
    PdfCollection
    PdfLoadedTextBoxItemCollection
    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 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 Description
    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

    Extension Methods

    EnumerableExtensions.GetElementType(IEnumerable)
    EnumerableExtensions.GetItemPropertyInfo(IEnumerable)
    FunctionalExtensions.ForEach<T>(IEnumerable, Action<T>)
    FunctionalExtensions.ToList<T>(IEnumerable)
    QueryableExtensions.OfQueryable(IEnumerable)
    QueryableExtensions.OfQueryable(IEnumerable, Type)
    QueryableExtensions.GroupByMany<TElement>(IEnumerable, Type, List<Func<TElement, Object>>)
    QueryableExtensions.GroupByMany(IEnumerable, Type, Func<String, Expression>, String[])
    QueryableExtensions.GroupByMany(IEnumerable, Type, List<SortDescriptor>, Dictionary<String, IComparer<Object>>, Func<String, Expression>, String[])
    QueryableExtensions.GroupByMany(IEnumerable, Type, List<SortDescriptor>, Func<String, Expression>, String[])

    See Also

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