menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfLoadedComboBoxItemCollection - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PdfLoadedComboBoxItemCollection

    Represents collection of Combo box items.

    Inheritance
    System.Object
    PdfCollection
    PdfLoadedComboBoxItemCollection
    Implements
    System.Collections.IEnumerable
    Inherited Members
    PdfCollection.Count
    PdfCollection.GetEnumerator()
    PdfCollection.List
    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 PdfLoadedComboBoxItemCollection : PdfCollection, IEnumerable
    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()

    Declaration
    public PdfLoadedComboBoxItemCollection()

    Properties

    Item[Int32]

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

    Declaration
    public PdfLoadedComboBoxItem this[int index] { get; }
    Parameters
    Type Name Description
    System.Int32 index
    Property Value
    Type
    PdfLoadedComboBoxItem
    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
    PdfCollection
    PdfLoadedComboBoxField
    PdfLoadedDocument

    Implements

    System.Collections.IEnumerable

    Extension Methods

    FunctionalExtensions.ForEach<T>(IEnumerable, Action<T>)
    FunctionalExtensions.ToList<T>(IEnumerable)

    See Also

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