Class PdfLoadedListFieldItemCollection
- Namespace
- Syncfusion.Pdf.Parsing
- Assembly
- Syncfusion.Pdf.Portable.dll
Represents loaded list field item collection.
public class PdfLoadedListFieldItemCollection : PdfCollection, IEnumerable
- Inheritance
-
PdfLoadedListFieldItemCollection
- Implements
- Inherited Members
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()
public PdfLoadedListFieldItemCollection()
- See Also
Properties
this[int]
Gets the PdfLoadedListFieldItem at the specified index.[Read-Only]
public PdfLoadedListFieldItem this[int index] { get; }
Parameters
index
int
Property Value
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