Class PdfLoadedListFieldItemCollection
Represents loaded list field item collection.
Implements
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Pdf.Parsing
Assembly: Syncfusion.Pdf.Base.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 |
---|
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
Implements
System.Collections.IEnumerable