跳到主要内容

FormInsertPr

表单插入特定属性。

类型

对象

属性

名称类型描述
keepSelectedTextInFormboolean指定当前选定的文本是否应保存为插入表单的内容。
placeholderFromSelectionboolean指定当前选定的文本是否应保存为插入表单的占位符。

示例

This example inserts a text box with the specified text box properties over the selected text.

// How to create a text form with its properties and insert it into the ApiDocument object.

// Create the ApiTextForm object and insert it into the document using the specified properties.

let textFormInsertPr = {
"key": "Personal information",
"tip": "Enter your first name",
"required": true,
"placeholder": "Name",
"comb": true,
"maxCharacters": 10,
"cellWidth": 3,
"multiLine": false,
"autoFit": false,
"placeholderFromSelection": true,
"keepSelectedTextInForm": false
};
doc.InsertTextForm(textFormInsertPr);