SetFormFieldChildTitle
表单字段
描述
设置指定表单字段的标题。对于按层级排列的表单字段,此函数仅设置字段名称的最后一部分。例如,名称为 "Address.ZipCode" 的字段可更改为 "Address.PostalCode"
语法
Delphi
Function TPDFlib.SetFormFieldChildTitle(Index: Integer; Const NewTitle: WideString): Integer;
ActiveX
Function PDFlib::SetFormFieldChildTitle(Index As Long, NewTitle As String) As Long
DLL
int DLSetFormFieldChildTitle(int InstanceID, int Index, const wchar_t* NewTitle);
int DLSetFormFieldChildTitleA(int InstanceID, int Index, const char* NewTitle);
参数
| Index | 要设置标题的表单字段索引 |
|---|---|
| NewTitle | 指定字段标题最后一部分的新值 |
返回值
| 0 | 找不到表单字段 |
|---|---|
| 1 | 已成功更改指定表单字段的标题 |