menu

Xamarin.Android

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfLoadedRadioButtonItemCollection - Xamarin.Android API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PdfLoadedRadioButtonItemCollection

    Represents collection of radio box group items.

    Inheritance
    System.Object
    PdfCollection
    PdfLoadedStateItemCollection
    PdfLoadedRadioButtonItemCollection
    Implements
    System.Collections.IEnumerable
    Inherited Members
    PdfCollection.Count
    PdfCollection.GetEnumerator()
    PdfCollection.List
    Namespace: Syncfusion.Pdf.Parsing
    Assembly: Syncfusion.Pdf.Portable.dll
    Syntax
    public class PdfLoadedRadioButtonItemCollection : PdfLoadedStateItemCollection, IEnumerable
    Examples
    //Load an existing document
    PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
    // Getting the 'Gender' radio button field          
    PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField;
    // Radio button field collection
    PdfLoadedRadioButtonItemCollection radiobuttonFieldCollection =  radiobuttonField.Items;
    // Radio button field item
    PdfLoadedRadioButtonItem radiobuttonItem = radiobuttonFieldCollection[0];
    // Selected the item 
    radiobuttonItem.Checked = true;         
    doc.Save("LoadedForm.pdf");
    doc.Close(true);
    'Load an existing document
    Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf")
    ' Getting the  'Gender' radio button field         
    Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField)
    ' Radio button field collection
    Dim radiobuttonFieldCollection As PdfLoadedRadioButtonItemCollection = radiobuttonField.Items
    ' Radio button field item
    Dim radiobuttonItem As PdfLoadedRadioButtonItem = radiobuttonFieldCollection(0)
    ' Selected the item 
    radiobuttonItem.Checked = True
    doc.Save("LoadedForm.pdf")
    doc.Close(True)

    Constructors

    PdfLoadedRadioButtonItemCollection()

    Declaration
    public PdfLoadedRadioButtonItemCollection()

    Properties

    Item[Int32]

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

    Declaration
    public PdfLoadedRadioButtonItem this[int index] { get; }
    Parameters
    Type Name Description
    System.Int32 index
    Property Value
    Type Description
    PdfLoadedRadioButtonItem

    Returns PdfLoadedRadioButtonItem object at the specified index.

    Examples
    //Load an existing document
    PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
    // Getting the 'Gender' radio button field          
    PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField;
    // Radio button field collection
    PdfLoadedRadioButtonItemCollection radiobuttonFieldCollection =  radiobuttonField.Items;
    // Radio button field item
    PdfLoadedRadioButtonItem radiobuttonItem = radiobuttonFieldCollection[0];
    // Selected the item 
    radiobuttonItem.Checked = true;         
    doc.Save("LoadedForm.pdf");
    doc.Close(true);
    'Load an existing document
    Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf")
    ' Getting the  'Gender' radio button field         
    Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField)
    ' Radio button field collection
    Dim radiobuttonFieldCollection As PdfLoadedRadioButtonItemCollection = radiobuttonField.Items
    ' Radio button field item
    Dim radiobuttonItem As PdfLoadedRadioButtonItem = radiobuttonFieldCollection(0)
    ' Selected the item 
    radiobuttonItem.Checked = True
    doc.Save("LoadedForm.pdf")
    doc.Close(True)
    See Also
    PdfLoadedStateItemCollection
    PdfLoadedRadioButtonItem
    PdfLoadedDocument

    Implements

    System.Collections.IEnumerable

    See Also

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