THotPDF.GetLoadedFormFieldOptions Method
Gibt eine Liste von Exportwerten aller Optionen in den geladenen PDF-Formularfeldern als String-Array zurück
Deklaration
function GetLoadedFormFieldOptions(FieldIndex: Integer): THPDFAnsiStringArray;
Einheit
HPDFDoc
Parameter
| Name | Verwendung |
|---|---|
FieldIndex | Der nullbasierte Index des Zielformularfelds |
Rückgabewert
返回 THPDFAnsiStringArray,包含该字段所有选项的导出值;若字段无选项则返回空数组
Nutzungshinweise
- 返回的数组顺序与 PDF 内部选项列表顺序一致,可直接用下标与
GetLoadedFormFieldOption配合使用 - Gilt nur für ComboBox- oder ListBox-Typ-Felder; der Aufruf für Textfelder oder Kontrollkästchen gibt ein leeres Array zurück
- 若需同时获取显示文本,应逐项调用
GetLoadedFormFieldOption而非仅依赖本方法的返回值