Xamarin.iOS

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfLoadedListFieldItemCollection - Xamarin.iOS API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PdfLoadedListFieldItemCollection

    Represents loaded list field item collection.

    Inheritance
    System.Object
    PdfCollection
    PdfLoadedListFieldItemCollection
    Implements
    System.Collections.IEnumerable
    Inherited Members
    PdfCollection.GetEnumerator()
    PdfCollection.Count
    PdfCollection.List
    Namespace: Syncfusion.Pdf.Parsing
    Assembly: Syncfusion.Pdf.Portable.dll
    Syntax
    public class PdfLoadedListFieldItemCollection : PdfCollection, IEnumerable
    Examples
    //Load an existing document
    PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
    // Getting the 'course' list box field          
    PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField;       
    // list field item Collection
    PdfLoadedListFieldItemCollection listItemCollection = listField.Items;
    listItemCollection[0].Bounds = new RectangleF(0, 0, 20, 30);            
    doc.Save("LoadedForm.pdf");
    doc.Close(true);
    'Load an existing document
    Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf")
    ' Getting the 'course' list box field          
    Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField)
    ' list field item Collection
    Dim listItemCollection As PdfLoadedListFieldItemCollection = listField.Items
    listItemCollection(0).Bounds = New RectangleF(0, 0, 20, 30)
    doc.Save("LoadedForm.pdf")
    doc.Close(True)

    Constructors

    PdfLoadedListFieldItemCollection()

    Declaration
    public PdfLoadedListFieldItemCollection()

    Properties

    Item[Int32]

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

    Declaration
    public PdfLoadedListFieldItem this[int index] { get; }
    Parameters
    Type Name Description
    System.Int32 index
    Property Value
    Type Description
    PdfLoadedListFieldItem
    Examples
    //Load an existing document
    PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
    // Getting the 'course' list box field          
    PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField;       
    // List field item Collection
    PdfLoadedListFieldItemCollection listItemCollection = listField.Items;
    // Reading the first item in the list items collection
    PdfLoadedListFieldItem listItem = listItemCollection[0];
    // Relocate the list item
    listItem.Location = new PointF(10, 20);
    doc.Save("LoadedForm.pdf");
    doc.Close(true);
    'Load an existing document
    Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf")
    ' Getting the 'course' list box field          
    Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField)
    ' List field item Collection
    Dim listItemCollection As PdfLoadedListFieldItemCollection = listField.Items
    ' Reading the first item in the list items collection
    Dim listItem As PdfLoadedListFieldItem = listItemCollection(0)
    ' Relocate the list item
    listItem.Location = New PointF(10, 20)
    doc.Save("LoadedForm.pdf")
    doc.Close(True)
    See Also
    PdfLoadedDocument

    Implements

    System.Collections.IEnumerable

    See Also

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