BCL easyPDF SDK
easyPDF SDK Usermanual
PDF Creator Programming API  |  Download Free Trial  |  Contact Us to Purchase

ItemSelected Property

Gets/sets whether the specified item is selected.

Property ItemSelected(Index As Long) As Boolean

bool get_ItemSelected(int Index)
void set_ItemSelected(int Index, bool Value)

boolean getItemSelected(int Index) throws PDFDocumentException
void setItemSelected(int Index, boolean Value) throws PDFDocumentException

Type

Boolean

Parameters

Remarks

N/A.

Example Usage

Set oDocument = CreateObject("easyPDF.PDFDocument.8")
 
oDocument.Open "c:\test\input.pdf"
Set oFormFields = oDocument.FormFields
 
For Each oFormField In FormFields
    Select Case oFormField.Type
        Case easyPDFDocument.docFormFieldType.DOC_FRMTYPE_CHECK
            Set oChoiceField = oFormField
            For I = 0 To oChoiceField.ItemCount - 1
                If oChoiceField.ItemSelected(I) Then
                    MsgBox "Item " + CStr(I) + " is selected"
                End If
            Next I
        End Select
Next oFormField
 
oDocument.Close False