AddFormFieldChoiceSub

フォームフィールド

説明

AddFormFieldSub 関数と似ていますが、選択フィールド項目'のエクスポート値と表示値を設定できます

次で使用できる一時フォームフィールド Index を返します

SetFormFieldBounds、SetFormFieldCheckStyle およびその他の関数

構文

Delphi

Function TPDFlib.AddFormFieldChoiceSub(Index: Integer; Const SubName, DisplayName: WideString): Integer;

ActiveX

Function PDFlib::AddFormFieldChoiceSub(Index As Long, SubName As String, DisplayName As String) As Long

DLL

int DLAddFormFieldChoiceSub(int InstanceID, int Index, const wchar_t * SubName, const wchar_t * DisplayName);

パラメータ

Index操作対象のフォームフィールドのインデックス。最初のフォームフィールドのインデックスは1。フォームフィールドは選択肢フィールドでなければならない
SubName新しいサブフィールドのエクスポート値。SetFormFieldValue 関数を使用してフォームフィールドの値をこの名前に設定できます。新しいサブフィールドの表示名
DisplayName

戻り値

0サブフィールドは追加されませんでした。指定したフォームフィールドが選択フォームフィールドではなかった可能性があります
Non-zero一時フィールドの Index