FormEditor.SetFieldAttribute
FormEditor.SetFieldAttribute method
Set attributes of field.
public bool SetFieldAttribute(string fieldName, PropertyFlag flag)
Parameter | Type | Description |
---|---|---|
fieldName | String | Name of field which attributes should be set. |
flag | PropertyFlag | Flag (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
- enum PropertyFlag
- class FormEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF