FormEditorSetFieldAppearance Method
Set field flags

Namespace: Aspose.Pdf.Facades
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 19.11
Syntax
public bool SetFieldAppearance(
	string fieldName,
	AnnotationFlags flags
)

Parameters

fieldName
Type: SystemString
Name of field whose flags should be updated.
flags
Type: Aspose.Pdf.AnnotationsAnnotationFlags
Flag of the field.

Return Value

Type: Boolean
true if flags were updated successfully.
Examples
C#
FormEditor formEditor = new FormEditor("PdfForm1.pdf", "FormEditor_SetFieldAppearance.pdf");
formEditor.SetFieldAppearance("Name", AnnotationFlags.Hidden);
formEditor.SetFieldAppearance("Phone", AnnotationFlags.NoView | AnnotationFlags.Print);
See Also