跳到主要内容

GetPartialName

Gets field partial name.

Syntax

expression.GetPartialName();

expression - A variable that represents a ApiBaseField class.

Parameters

This method doesn't have any parameters.

Returns

string

Example

This example gets field partial name and displays it.

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

textField.SetPartialName('EXAMPLE');
textField.SetValue('Field partial name is: ' + textField.GetFullName());