FormEditorSetFieldAttribute Method
Set attributes of field.

Namespace: Aspose.Pdf.Facades
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 19.11
Syntax
public bool SetFieldAttribute(
	string fieldName,
	PropertyFlag flag
)

Parameters

fieldName
Type: SystemString
Name of field which attributes should be set.
flag
Type: Aspose.Pdf.FacadesPropertyFlag
Flag (NoExport/ReadOnly/Required)

Return Value

Type: Boolean
true if attribute was set successfully.
Examples
C#
FormEditor formEditor = new FormEditor("PdfForm.pdf",  "PdfForm_SetFieldAttribute.pdf");
formEditor.SetFieldAttribute("listboxField", PropertyFlag.ReadOnly);
formEditor.SetFieldAttribute("textField", PropertyFlag.NoExport);
See Also