SetFieldAppearance

FormEditor.SetFieldAppearance method

设置字段标志

public bool SetFieldAppearance(string fieldName, AnnotationFlags flags)
范围类型描述
fieldNameString应更新其标志的字段的名称。
flagsAnnotationFlags领域的标志。

返回值

如果标志已成功更新,则为 true。

例子

FormEditor formEditor = new FormEditor("PdfForm1.pdf", "FormEditor_SetFieldAppearance.pdf");
formEditor.SetFieldAppearance("Name", AnnotationFlags.Hidden);
formEditor.SetFieldAppearance("Phone", AnnotationFlags.NoView | AnnotationFlags.Print);

也可以看看