跳到主要内容

GetFullName

获取字段完整名称。

语法

expression.GetFullName();

expression - 表示 ApiBaseField 类的变量。

参数

此方法没有任何参数。

返回值

string

示例

读取 PDF 中表单字段的完整名称标识符。

// How do I retrieve the full name assigned to a form field in a PDF?

// Display the unique full name property of a form field in a PDF.

let doc = Api.GetDocument();
let page = doc.GetPage(0);
let textField = Api.CreateTextField([10, 10, 160, 30]);
page.AddObject(textField);

textField.SetValue('Field full name is: ' + textField.GetFullName());