Click or drag to resize

PdfiumFPDFFormField_GetSelectedIndex Method

Gets selected index

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public static int FPDFFormField_GetSelectedIndex(
	IntPtr frmField,
	int index
)

Parameters

frmField  IntPtr
Handle to field. Returned by FPDFInterForm_GetField(IntPtr, Int32, String) function./
index  Int32
Index of item ranging from 0 to FPDFFormField_CountSelectedItems(IntPtr)

Return Value

Int32
Selected index
Remarks
For choice fields that allow multiple selection (MultiSelect flag set), an array of integers, sorted in ascending order, representing the zero-based indices in the Opt array of the currently selected option items. This entry is required when two or more elements in the Opt array have different names but the same export value or when the value of the choice field is an array. In other cases, the entry is permitted but not required. If the items identified by this entry differ from those in the V entry of the field dictionary (see below), the V entry takes precedence.
See Also