FormEditor.SetFieldAttribute

FormEditor.SetFieldAttribute method

Set attributes of field.

public bool SetFieldAttribute(string fieldName, PropertyFlag flag)
ParameterTypeDescription
fieldNameStringName of field which attributes should be set.
flagPropertyFlagFlag (NoExport/ReadOnly/Required)

Return Value

true if attribute was set successfully.

Examples

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

See Also