Table of Contents

Class PdfLoadedRadioButtonItemCollection

Namespace
Syncfusion.Pdf.Parsing
Assembly
Syncfusion.Pdf.Portable.dll

Represents collection of radio box group items.

public class PdfLoadedRadioButtonItemCollection : PdfLoadedStateItemCollection, IEnumerable
Inheritance
PdfLoadedRadioButtonItemCollection
Implements
Inherited Members

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()

public PdfLoadedRadioButtonItemCollection()
See Also

Properties

this[int]

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

public PdfLoadedRadioButtonItem this[int index] { get; }

Parameters

index int

Property Value

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

See Also