IsFixed
检查当前表单是否为固定大小。
继承自 ApiFormBase.IsFixed。
语法
expression.IsFixed();
expression - 表示 ApiSignatureForm 类的变量。
参数
此方法没有任何参数。
返回值
boolean
示例
确认文档中的签名字段是否具有锁定且不可更改的大小。
// How do I find out if a signature field is set to a fixed size in a document?
// Distinguish between resizable and size-locked signature fields in a document.
let doc = Api.GetDocument();
let signatureForm = Api.CreateSignatureForm({"key": "Signature", "tip": "Please sign here", "placeholder": "Signature"});
let paragraph = doc.GetElement(0);
paragraph.AddElement(signatureForm);
signatureForm.ToFixed(10 * 240, 2 * 240);
let fixed = signatureForm.IsFixed();
paragraph = Api.CreateParagraph();
paragraph.AddText("The first form from this document is fixed: " + fixed);
doc.Push(paragraph);