Class PdfLoadedComboBoxItemCollection
- Namespace
- Syncfusion.Pdf.Parsing
- Assembly
- Syncfusion.Pdf.Portable.dll
Represents collection of Combo box items.
public class PdfLoadedComboBoxItemCollection : PdfCollection, IEnumerable
- Inheritance
-
PdfLoadedComboBoxItemCollection
- Implements
- Inherited Members
Examples
//Load an existing document
PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
// Load an existing combo field
PdfLoadedComboBoxField comboField = doc.Form.Fields["EmployeeCombo"] as PdfLoadedComboBoxField;
// Load combo field collection
PdfLoadedComboBoxItemCollection comboCollection = comboField.Items;
// Load combo field item
PdfLoadedComboBoxItem comboItem = comboCollection[0];
comboItem.Bounds = new RectangleF(10,20,200,300);
doc.Save("Form.pdf");
doc.Close(true);
'Load an existing document
Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf")
' Load an existing combo field
Dim comboField As PdfLoadedComboBoxField = TryCast(doc.Form.Fields("EmployeeCombo"), PdfLoadedComboBoxField)
' Load combo field collection
Dim comboCollection As PdfLoadedComboBoxItemCollection = comboField.Items
' Load combo field item
Dim comboItem As PdfLoadedComboBoxItem = comboCollection(0)
comboItem.Bounds = New RectangleF(10,20,200,300)
doc.Save("Form.pdf")
doc.Close(True)
Constructors
PdfLoadedComboBoxItemCollection()
public PdfLoadedComboBoxItemCollection()
- See Also
Properties
this[int]
Gets the PdfLoadedComboBoxItem at the specified index.[Read-Only]
public PdfLoadedComboBoxItem this[int index] { get; }
Parameters
index
int
Property Value
Examples
//Load an existing document
PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
// Load an existing combo field
PdfLoadedComboBoxField comboField = doc.Form.Fields["EmployeeCombo"] as PdfLoadedComboBoxField;
// Load combo field collection
PdfLoadedComboBoxItemCollection comboCollection = comboField.Items;
// Load combo field item
PdfLoadedComboBoxItem comboItem = comboCollection[0];
comboItem.Bounds = new RectangleF(10,20,200,300);
doc.Save("Form.pdf");
doc.Close(true);
'Load an existing document
Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf")
' Load an existing combo field
Dim comboField As PdfLoadedComboBoxField = TryCast(doc.Form.Fields("EmployeeCombo"), PdfLoadedComboBoxField)
' Load combo field collection
Dim comboCollection As PdfLoadedComboBoxItemCollection = comboField.Items
' Load combo field item
Dim comboItem As PdfLoadedComboBoxItem = comboCollection(0)
comboItem.Bounds = New RectangleF(10,20,200,300)
doc.Save("Form.pdf")
doc.Close(True)
- See Also