FormEditor.SetFieldAttribute

FormEditor.SetFieldAttribute 方法

设置字段的属性。

public bool SetFieldAttribute(string fieldName, PropertyFlag flag)
参数类型描述
fieldName字符串应该设置属性的字段名称。
flagPropertyFlag标志(NoExport/ReadOnly/Required)

返回值

如果属性成功设置,则返回 true。

示例

FormEditor formEditor = new FormEditor("PdfForm.pdf",  "PdfForm_SetFieldAttribute.pdf");
formEditor.SetFieldAttribute("listboxField", PropertyFlag.ReadOnly);
formEditor.SetFieldAttribute("textField", PropertyFlag.NoExport);

另请参阅