SetFormFieldCaption

Formularfelder

Beschreibung

Legt die Beschriftung des Formularfelds fest. Dies gilt nur für Formularfelder vom Typ Schaltfläche, Kontrollkästchen und Optionsfeld (Radiobutton).

Syntax

Delphi

Function TPDFlib.SetFormFieldCaption(Index: Integer; Const NewCaption: WideString): Integer;

ActiveX

Function PDFlib::SetFormFieldCaption(Index As Long, NewCaption As String) As Long

DLL

int DLSetFormFieldCaption(int InstanceID, int Index, const wchar_t* NewCaption);
int DLSetFormFieldCaptionA(int InstanceID, int Index, const char* NewCaption);

Parameter

IndexDer Index des Formularfelds
NewCaptionDie neue Beschriftung des Formularfelds.

Rückgabewerte

0Das Formularfeld wurde nicht gefunden oder die Parameter waren ungültig
1Die Beschriftung des Formularfelds wurde erfolgreich festgelegt